Uncomment sections of test/rulescomp.c
authorRan Benita <ran234@gmail.com>
Mon, 7 May 2012 12:07:41 +0000 (15:07 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 8 May 2012 16:28:50 +0000 (17:28 +0100)
Fixes an 'unused' warning. There seems to be nothing wrong with these
sections though, all the tests pass.

Signed-off-by: Ran Benita <ran234@gmail.com>
test/rulescomp.c

index 64f918f..8158852 100644 (file)
@@ -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;
 }