summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-05-07 15:07:41 +0300
committerDaniel Stone <daniel@fooishbar.org>2012-05-08 17:28:50 +0100
commita1e07fb6f63e2657d78e4cd58dc72eaead2c1be6 (patch)
tree72cb4c1f2c993e9d23de4066bb8b5b1e761a935e
parentb41c77f8a809e3d7747b7fcbb4d3c5e9b6a1a149 (diff)
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 <ran234@gmail.com>
-rw-r--r--test/rulescomp.c4
1 files changed, 0 insertions, 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;
}