diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-09-21 09:49:05 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-10-02 16:35:58 -0700 |
commit | cccba52d152a7d233c0b762a54844ecef831483e (patch) | |
tree | e640bd9966ec56c66fb6b267a4f41b8f6d3fabee /dix | |
parent | 95a5b92e37f73f497d547fd91c543c16d2cc73de (diff) |
Abort xi2 tests if ActivateDevice() fails
I was getting segfaults in xi2 tests from trying to copy XKB keyboard
state to NULL pointers with a stack of:
key=key@entry=0) at xkbActions.c:1189
sendevent=sendevent@entry=0 '\000') at devices.c:420
at protocol-xiquerydevice.c:338
which turned out to be due to xkbcomp failure, which was logged in the
test logs as:
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
but which was overlooked because the ActivateDevice() return code wasn't
checked and the tests went forward assuming the structures were all
correctly initialized. This catches the failure closer to the point of
failure, to save debugging time.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dix')
0 files changed, 0 insertions, 0 deletions