libxkbcommon/test/data/keymaps
Ran Benita 74f85d0540 test/x11comp: remove duplicate FOUR_LEVEL_KEYPAD from test keymap
The `test/data/keymaps/host.xkb` file contains a duplicate definition of
this type. On my computer (linux, xkbcomp 1.3.0, xserver 1.17.2), the
test passes as is, but if I remove the duplicate definition, the
roundtrip brings it back and the test fails. I can also reproduce it
without relation to the test, by loading `test/data/keymaps/host.xkb`
(without the duplicate) using

    xkbcomp -I $(pwd)/test/data/keymaps/host.xkb $DISPLAY

and downloading it again using

    xkbcomp $DISPLAY out.xkb

the duplicate is added. On Mac OS X however, the duplicate is removed
(correctly), so the test fails there.

xkbcommon itself, which was forked from xkbcomp, doesn't have this bug;
in fact, doing

    ./test/print-compiled-keymap -k keymaps/host.xkb

removes the duplicate if it is present.

This is (probably) a regression in xkbcomp or xserver compared to the
versions used in Mac OS X. Since getting a patch for any of these two is
hopeless from my experience, I did not try to investigate further.

I am not sure why, but if I also add a `PC_SUPER_LEVEL2` type, the
duplicate of `FOUR_LEVEL_KEYPAD` doesn't show up. Hopefully the test
will work on all platforms now.

https://github.com/xkbcommon/libxkbcommon/issues/26

Reported-by: @nuko8
Signed-off-by: Ran Benita <ran234@gmail.com>
2015-08-23 23:16:37 +03:00
..
bad.xkb Move test data files to test/data/keymaps 2012-07-12 14:14:50 +01:00
basic.xkb Import dataset into test/data/ 2012-07-12 14:48:49 +01:00
comprehensive-plus-geom.xkb Move test data files to test/data/keymaps 2012-07-12 14:14:50 +01:00
divide-by-zero.xkb scanner: restore lost DIVIDE token 2013-11-27 13:45:15 +02:00
host.xkb test/x11comp: remove duplicate FOUR_LEVEL_KEYPAD from test keymap 2015-08-23 23:16:37 +03:00
no-aliases.xkb keycodes: fix keymap compilation with no aliases and malloc(0)==NULL 2014-09-10 13:44:33 +03:00
no-types.xkb types: don't use canonical/required types 2012-08-07 13:20:37 +03:00
quartz.xkb scanner: allow empty key name literals 2013-08-02 11:40:27 +03:00
stringcomp.data keymap-dump: combine modifier_map's with the same modifier 2014-09-22 00:05:38 +03:00
syntax-error.xkb test: add file with a syntax error 2014-07-26 22:29:22 +03:00
syntax-error2.xkb ast-build: make sure InterpDef is freeable 2014-07-27 14:32:18 +03:00
unbound-vmod.xkb state: fix unbound virtual modifier bug 2013-03-18 22:20:01 +00:00