From a1e07fb6f63e2657d78e4cd58dc72eaead2c1be6 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 7 May 2012 15:07:41 +0300 Subject: [PATCH] Uncomment sections of test/rulescomp.c Fixes an 'unused' warning. There seems to be nothing wrong with these sections though, all the tests pass. Signed-off-by: Ran Benita --- test/rulescomp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/rulescomp.c b/test/rulescomp.c index 64f918f..8158852 100644 --- a/test/rulescomp.c +++ b/test/rulescomp.c @@ -50,7 +50,6 @@ test_rmlvo(const char *rules, const char *model, const char *layout, rmlvo.layout, rmlvo.variant, rmlvo.options); xkb = xkb_map_new_from_names(context, &rmlvo); -#if 0 if (!xkb) { xkb_context_unref(context); return 0; @@ -58,7 +57,6 @@ test_rmlvo(const char *rules, const char *model, const char *layout, xkb_map_unref(xkb); xkb_context_unref(context); -#endif return 1; } @@ -66,7 +64,6 @@ int main(void) { assert(test_rmlvo("base", "pc105", "us,il,ru,ca", ",,,multix", "grp:alts_toggle,ctrl:nocaps,compose:rwin")); -#if 0 assert(test_rmlvo("base", "", "us", "", "")); assert(test_rmlvo("evdev", "pc105", "us", "intl", "")); assert(test_rmlvo("evdev", "pc105", "us", "intl", "grp:alts_toggle")); @@ -75,7 +72,6 @@ main(void) assert(!test_rmlvo("base", "", "", "", "")); assert(!test_rmlvo("base", "pc105", "", "", "")); assert(!test_rmlvo("badrules", "", "us", "", "")); -#endif return 0; } -- 2.7.4