From 641a1b9363d59808d2586f9e84847ccc69701482 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 26 Mar 2012 10:34:34 +1000 Subject: [PATCH] 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 Reviewed-by: Jeremy Huddleston Tested-by: Jeremy Huddleston --- test/xi2/protocol-xiqueryversion.c | 1 + 1 file changed, 1 insertion(+) 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);