Module: wine Branch: master Commit: 9a43d51e06b9f52a4c4feefe8c8ab5aa31d8873f URL: https://gitlab.winehq.org/wine/wine/-/commit/9a43d51e06b9f52a4c4feefe8c8ab5a...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Jul 21 21:48:16 2023 -0500
ws2_32/tests: Give an event test marked todo a bit more time to fail on Wine.
We are testing that FD_CLOSE isn't generated, but Wine currently generates FD_CLOSE anyway. However, sometimes Wine does not generate FD_CLOSE immediately, causing the test to intermittently succeed inside the todo block.
This test is difficult to fix properly—it would involve either (arbitrary?) buffering in the server, or support from the host OS.
However, we also don't want to make the Windows tests take longer, so add the 200 ms of leeway only on Wine.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54073
---
dlls/ws2_32/tests/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 9d0f8e0e820..9881540319b 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -6920,7 +6920,7 @@ static void test_close_events(struct event_test_ctx *ctx) ret = recv(server, buffer, 5, 0); ok(ret == 2, "got %d\n", ret);
- check_events_todo(ctx, 0, 0, 0); + check_events_todo(ctx, 0, 0, !strcmp(winetest_platform, "wine") ? 200 : 0);
closesocket(server);