mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
test: reset the client before checking the swapped version
As of 2c23ef83b0, the server returns BadValue
for the same client with multiple versions. Avoid this by resetting the
client before we issue the same request as a fake swap client.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -115,6 +115,7 @@ request_XIQueryVersion(int smaj, int smin, int cmaj, int cmin, int error)
|
||||
rc = ProcXIQueryVersion(&client);
|
||||
assert(rc == error);
|
||||
|
||||
client = init_client(request.length, &request);
|
||||
client.swapped = TRUE;
|
||||
|
||||
swaps(&request.length);
|
||||
|
||||
Reference in New Issue
Block a user