diff options
author | Uli Schlachter <psychon@znc.in> | 2023-12-08 17:43:53 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2023-12-08 17:43:53 +0100 |
commit | fad9c433f54e7c4e8531e3c41161d15631213aae (patch) | |
tree | 655aa1a25c88c9319bd7b7ccce864bf219e67aaf | |
parent | f85a73865aabed74c311b90b44c0f7c643e05e2a (diff) |
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>
-rw-r--r-- | tests/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test.c b/tests/test.c index 2fa40ce..761b855 100644 --- a/tests/test.c +++ b/tests/test.c @@ -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)"); |