[PATCH 2/2] test: reset the client before checking the swapped version
Peter Hutterer
peter.hutterer at who-t.net
Sun Mar 25 17:36:38 PDT 2012
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 at who-t.net>
---
test/xi2/protocol-xiqueryversion.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/test/xi2/protocol-xiqueryversion.c b/test/xi2/protocol-xiqueryversion.c
index 3d50fa8..2552307 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);
--
1.7.7.6
More information about the xorg-devel
mailing list