summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-03-26 10:34:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-03-29 08:14:54 +1000
commit641a1b9363d59808d2586f9e84847ccc69701482 (patch)
tree30ce5c0731260fa6f1861857b15432d999d759e8 /test
parent17f33ca0e5bff45a2d03e4d3b4753a714ce25baf (diff)
test: reset the client before checking the swapped version
As of 2c23ef83b0e03e163aeeb06133538606886f4e9c, 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>
Diffstat (limited to 'test')
-rw-r--r--test/xi2/protocol-xiqueryversion.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/xi2/protocol-xiqueryversion.c b/test/xi2/protocol-xiqueryversion.c
index 3d50fa888..2552307f2 100644
--- a/test/xi2/protocol-xiqueryversion.c
+++ b/test/xi2/protocol-xiqueryversion.c
@@ -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);