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:
Peter Hutterer 2012-03-26 10:34:34 +10:00
parent 17f33ca0e5
commit 641a1b9363
1 changed files with 1 additions and 0 deletions

View File

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