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:
parent
17f33ca0e5
commit
641a1b9363
|
|
@ -115,6 +115,7 @@ request_XIQueryVersion(int smaj, int smin, int cmaj, int cmin, int error)
|
||||||
rc = ProcXIQueryVersion(&client);
|
rc = ProcXIQueryVersion(&client);
|
||||||
assert(rc == error);
|
assert(rc == error);
|
||||||
|
|
||||||
|
client = init_client(request.length, &request);
|
||||||
client.swapped = TRUE;
|
client.swapped = TRUE;
|
||||||
|
|
||||||
swaps(&request.length);
|
swaps(&request.length);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue