mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git
synced 2025-12-20 04:40:02 +01:00
Fix tests
The tests also use some non-existing events to check that these are handled correctly. Then came XI 2.4 and introduced several new events, which broke the test. Fix this by updating the test accordingly. This means tests will now fail when using an older version of xcb-proto. If you are affected by this, either do not run tests, or build against a newer version of xcb-proto. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
f85a73865a
commit
fad9c433f5
1 changed files with 2 additions and 1 deletions
|
|
@ -303,7 +303,8 @@ static int test_xinput(xcb_connection_t *c, xcb_errors_context_t *ctx)
|
|||
err |= check_xge_event(ctx, reply->major_opcode, 0, "Unknown (0)", "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 1, "DeviceChanged", "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 26, "BarrierLeave", "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 27, NULL, "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 32, "GestureSwipeEnd", "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 33, NULL, "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 1337, NULL, "Input");
|
||||
err |= check_xge_event(ctx, reply->major_opcode, 0xffff, NULL, "Input");
|
||||
err |= check_minor(ctx, reply->major_opcode, 0, "Unknown (0)");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue