test-evemu-create fails when checking BITS
The test fails reproducibly on Fedora and Debian (but it used to pass); I haven’t figured out what changed.
test-evemu-create: test-evemu-create.c:184: check_evemu_read: Assertion `evemu_has_event(dev, i, j)' failed.
Program received signal SIGABRT, Aborted.
The backtrace is as follows:
#0 0x00007ffff7dd9625 in raise () from /lib64/libc.so.6
#1 0x00007ffff7dc28d9 in abort () from /lib64/libc.so.6
#2 0x00007ffff7dc27a9 in __assert_fail_base.cold () from /lib64/libc.so.6
#3 0x00007ffff7dd1a66 in __assert_fail () from /lib64/libc.so.6
#4 0x0000000000401634 in check_evemu_read (flags=BITS, file=0x7fffffffd750 "evemu.tmp.XVeh0kW", fd=3) at test-evemu-create.c:184
#5 check_valid_formats (file=<optimized out>, fd=<optimized out>) at test-evemu-create.c:208
#6 main (argc=<optimized out>, argv=<optimized out>) at test-evemu-create.c:221
>>> up
#1 0x00007ffff7dc28d9 in abort () from /lib64/libc.so.6
>>> up
#2 0x00007ffff7dc27a9 in __assert_fail_base.cold () from /lib64/libc.so.6
>>> up
#3 0x00007ffff7dd1a66 in __assert_fail () from /lib64/libc.so.6
>>> up
#4 0x0000000000401634 in check_evemu_read (flags=BITS, file=0x7fffffffd750 "evemu.tmp.XVeh0kW", fd=3) at test-evemu-create.c:184
184 assert(evemu_has_event(dev, i, j));
i is 5 and j is 16 when the test fails. I’m attaching the test file: evemu.tmp.XVeh0kW.