util-errors: tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 12 20:17:30 UTC 2023


 tests/test.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit fad9c433f54e7c4e8531e3c41161d15631213aae
Author: Uli Schlachter <psychon at znc.in>
Date:   Fri Dec 8 17:43:53 2023 +0100

    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 at znc.in>

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)");


More information about the xcb-commit mailing list