test: Xi: make sure client swapped flag is reset
Some test cases are recycling the ClientRec between swapped/unwapped runs. Make sure the Client's swapped flag is always reset in those cases. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1dbd46b21b
commit
091c818213
|
@ -81,6 +81,7 @@ request_XIGetClientPointer(ClientPtr client, xXIGetClientPointerReq * req,
|
|||
|
||||
test_data.win = req->win;
|
||||
|
||||
client_request.swapped = FALSE;
|
||||
rc = ProcXIGetClientPointer(&client_request);
|
||||
assert(rc == error);
|
||||
|
||||
|
@ -95,7 +96,6 @@ request_XIGetClientPointer(ClientPtr client, xXIGetClientPointerReq * req,
|
|||
|
||||
if (rc == BadWindow)
|
||||
assert(client_request.errorValue == req->win);
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -137,6 +137,7 @@ request_XIPassiveGrabDevice(ClientPtr client, xXIPassiveGrabDeviceReq * req,
|
|||
int mask_len;
|
||||
|
||||
client_request.req_len = req->length;
|
||||
client_request.swapped = FALSE;
|
||||
rc = ProcXIPassiveGrabDevice(&client_request);
|
||||
assert(rc == error);
|
||||
|
||||
|
|
|
@ -120,6 +120,7 @@ request_XIQueryPointer(ClientPtr client, xXIQueryPointerReq * req, int error)
|
|||
{
|
||||
int rc;
|
||||
|
||||
client_request.swapped = FALSE;
|
||||
rc = ProcXIQueryPointer(&client_request);
|
||||
assert(rc == error);
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ request_XIWarpPointer(ClientPtr client, xXIWarpPointerReq * req, int error)
|
|||
{
|
||||
int rc;
|
||||
|
||||
client->swapped = FALSE;
|
||||
rc = ProcXIWarpPointer(client);
|
||||
assert(rc == error);
|
||||
|
||||
|
@ -93,8 +94,6 @@ request_XIWarpPointer(ClientPtr client, xXIWarpPointerReq * req, int error)
|
|||
else if (rc == BadWindow)
|
||||
assert(client->errorValue == req->dst_win ||
|
||||
client->errorValue == req->src_win);
|
||||
|
||||
client->swapped = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue