xserver/test/xi2
Peter Hutterer 11c92ffcf5 test: fix the xi2 protocol swapping tests to actually work
This tests override WriteToClient() with their own custom function to
check for validity. Unfortunately they also papered over bugs - to
compare values we had to swap back thus modifying the original reply.

This doesn't really have an effect on most reply handling but for those
with extra data it may affect how they are processed. Fix this by
copying the reply so any of the fields within that we swap is left
as-is and put some basic sanity checks in for the length we pass in.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1469>
2024-04-09 06:44:36 +00:00
..
protocol-common.c test: switch the remaining wrapped functions to use the macros 2024-01-30 00:15:10 +00:00
protocol-common.h test: switch the remaining wrapped functions to use the macros 2024-01-30 00:15:10 +00:00
protocol-eventconvert.c test: xi2: drop unused variable 2024-03-22 00:33:29 +00:00
protocol-xigetclientpointer.c test: fix the xi2 protocol swapping tests to actually work 2024-04-09 06:44:36 +00:00
protocol-xigetselectedevents.c test: fix the xi2 protocol swapping tests to actually work 2024-04-09 06:44:36 +00:00
protocol-xipassivegrabdevice.c test: fix the xi2 protocol swapping tests to actually work 2024-04-09 06:44:36 +00:00
protocol-xiquerydevice.c test: fix the xi2 protocol swapping tests to actually work 2024-04-09 06:44:36 +00:00
protocol-xiquerypointer.c test: fix the xi2 protocol swapping tests to actually work 2024-04-09 06:44:36 +00:00
protocol-xiqueryversion.c test: fix the xi2 protocol swapping tests to actually work 2024-04-09 06:44:36 +00:00
protocol-xiselectevents.c test: use a dbg() macro for the test output 2024-01-30 00:15:10 +00:00
protocol-xisetclientpointer.c test: use a dbg() macro for the test output 2024-01-30 00:15:10 +00:00
protocol-xiwarppointer.c test: switch the unit tests to something resembling a test suite 2024-01-30 00:15:10 +00:00
xi2.c test: switch the unit tests to something resembling a test suite 2024-01-30 00:15:10 +00:00