filecomp: fix path and error message

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-08-05 12:03:51 +03:00
parent 1d570a6d46
commit 9617b092e2
2 changed files with 8 additions and 7 deletions

View File

@ -217,17 +217,17 @@ FileTypeText(enum xkb_file_type type)
{
switch (type) {
case FILE_TYPE_KEYMAP:
return "Keymap";
return "xkb_keymap";
case FILE_TYPE_TYPES:
return "Types";
return "xkb_types";
case FILE_TYPE_COMPAT:
return "CompatMap";
return "xkb_compatability";
case FILE_TYPE_SYMBOLS:
return "Symbols";
return "xkb_symbols";
case FILE_TYPE_KEYCODES:
return "KeyNames";
return "xkb_keycodes";
case FILE_TYPE_RULES:
return "Rules";
return "rules";
default:
return "unknown";
}

View File

@ -56,7 +56,8 @@ main(void)
assert(test_file(ctx, "keymaps/comprehensive-plus-geom.xkb"));
assert(!test_file(ctx, "keymaps/divide-by-zero.xkb"));
assert(!test_file(ctx, "bad.xkb"));
assert(!test_file(ctx, "keymaps/bad.xkb"));
assert(!test_file(ctx, "does not exist"));
xkb_context_unref(ctx);