summaryrefslogtreecommitdiff
path: root/test/rulescomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rulescomp.c')
-rw-r--r--test/rulescomp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rulescomp.c b/test/rulescomp.c
index 7318f75..55113f6 100644
--- a/test/rulescomp.c
+++ b/test/rulescomp.c
@@ -118,5 +118,12 @@ int main(int argc, char *argv[])
assert(!test_rmlvo(ctx, "does-not-exist", "", "", "", ""));
+ /* Test response to invalid flags. */
+ {
+ struct xkb_rule_names rmlvo = { NULL };
+ assert(!xkb_keymap_new_from_names(ctx, &rmlvo, -1));
+ assert(!xkb_keymap_new_from_names(ctx, &rmlvo, 5453));
+ }
+
xkb_context_unref(ctx);
}