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:
Uli Schlachter 2023-12-08 17:43:53 +01:00
parent f85a73865a
commit fad9c433f5

View file

@ -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, 0, "Unknown (0)", "Input");
err |= check_xge_event(ctx, reply->major_opcode, 1, "DeviceChanged", "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, 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, 1337, NULL, "Input");
err |= check_xge_event(ctx, reply->major_opcode, 0xffff, NULL, "Input"); err |= check_xge_event(ctx, reply->major_opcode, 0xffff, NULL, "Input");
err |= check_minor(ctx, reply->major_opcode, 0, "Unknown (0)"); err |= check_minor(ctx, reply->major_opcode, 0, "Unknown (0)");