Francois Gouget : kernel32/tests: Allow a 0 removed entry count in the completion test.
Module: wine Branch: master Commit: c63b323e220f9e5d4fbf1829a2b2f03e24d4b6e2 URL: https://gitlab.winehq.org/wine/wine/-/commit/c63b323e220f9e5d4fbf1829a2b2f03... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu Sep 14 12:11:28 2023 +0200 kernel32/tests: Allow a 0 removed entry count in the completion test. This matches the ntdll:file fix. Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54554 --- dlls/kernel32/tests/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c index 65164d7f2a4..7044a992bb6 100644 --- a/dlls/kernel32/tests/file.c +++ b/dlls/kernel32/tests/file.c @@ -5559,7 +5559,7 @@ static void test_post_completion(void) ret = pGetQueuedCompletionStatusEx( port, entries, 2, &count, 0, FALSE ); ok(!ret, "GetQueuedCompletionStatusEx succeeded\n"); ok(GetLastError() == WAIT_TIMEOUT, "wrong error %lu\n", GetLastError()); - ok(count == 1, "wrong count %lu\n", count); + ok(count <= 1, "wrong count %lu\n", count); ret = PostQueuedCompletionStatus( port, 123, 456, &ovl ); ok(ret, "PostQueuedCompletionStatus failed: %lu\n", GetLastError()); @@ -5600,14 +5600,14 @@ static void test_post_completion(void) ret = pGetQueuedCompletionStatusEx( port, entries, 2, &count, 0, FALSE ); ok(!ret, "GetQueuedCompletionStatusEx succeeded\n"); ok(GetLastError() == WAIT_TIMEOUT, "wrong error %lu\n", GetLastError()); - ok(count == 1, "wrong count %lu\n", count); + ok(count <= 1, "wrong count %lu\n", count); ok(!user_apc_ran, "user APC should not have run\n"); ret = pGetQueuedCompletionStatusEx( port, entries, 2, &count, 0, TRUE ); ok(!ret || broken(ret) /* Vista */, "GetQueuedCompletionStatusEx succeeded\n"); if (!ret) ok(GetLastError() == WAIT_IO_COMPLETION, "wrong error %lu\n", GetLastError()); - ok(count == 1, "wrong count %lu\n", count); + ok(count <= 1, "wrong count %lu\n", count); ok(user_apc_ran, "user APC should have run\n"); user_apc_ran = FALSE;
participants (1)
-
Alexandre Julliard