ws2_32/tests: Cancel a call that currently incorrectly returns STATUS_PENDING.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-02-09 12:06:52 -06:00 committed by Alexandre Julliard
parent 2a38dab2d2
commit d9f3ea3287
1 changed files with 6 additions and 0 deletions

View File

@ -1387,6 +1387,12 @@ static void test_recv(void)
todo_wine ok(!io.Status, "got %#x\n", io.Status); todo_wine ok(!io.Status, "got %#x\n", io.Status);
todo_wine ok(io.Information == 1, "got %#Ix\n", io.Information); todo_wine ok(io.Information == 1, "got %#Ix\n", io.Information);
todo_wine ok(buffer[0] == 'a', "got %s\n", debugstr_an(buffer, io.Information)); todo_wine ok(buffer[0] == 'a', "got %s\n", debugstr_an(buffer, io.Information));
if (ret == STATUS_PENDING)
{
CancelIo((HANDLE)client);
ret = WaitForSingleObject(event, 100);
ok(!ret, "wait timed out\n");
}
params.msg_flags = AFD_MSG_NOT_OOB | AFD_MSG_PEEK; params.msg_flags = AFD_MSG_NOT_OOB | AFD_MSG_PEEK;