Alexandre Julliard : kernel32/tests: Don't assume that notifications are instantaneous.
Module: wine Branch: master Commit: 7c7e7e916309c229cff9b83394a7473f07251db4 URL: https://gitlab.winehq.org/wine/wine/-/commit/7c7e7e916309c229cff9b83394a7473... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Sep 1 11:58:18 2022 +0200 kernel32/tests: Don't assume that notifications are instantaneous. --- dlls/kernel32/tests/change.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c index 609cf30bcfa..15d5a4e0fe6 100644 --- a/dlls/kernel32/tests/change.c +++ b/dlls/kernel32/tests/change.c @@ -290,7 +290,7 @@ static void test_ffcn(void) ok( file != INVALID_HANDLE_VALUE, "CreateFile error %lu\n", GetLastError() ); CloseHandle(file); - r = WaitForSingleObject( handle, 0 ); + r = WaitForSingleObject( handle, 1000 ); ok( r == WAIT_OBJECT_0, "should be ready\n"); r = WaitForSingleObject( handle, 0 ); @@ -305,7 +305,7 @@ static void test_ffcn(void) r = DeleteFileW( filename ); ok( r == TRUE, "failed to remove file\n"); - r = WaitForSingleObject( handle, 0 ); + r = WaitForSingleObject( handle, 1000 ); ok( r == WAIT_OBJECT_0, "should be ready\n"); r = WaitForSingleObject( handle, 0 ); @@ -320,7 +320,7 @@ static void test_ffcn(void) r = CreateDirectoryW( subdir, NULL ); ok( r == TRUE, "failed to create subdir\n"); - r = WaitForSingleObject( handle, 0 ); + r = WaitForSingleObject( handle, 1000 ); ok( r == WAIT_OBJECT_0, "should be ready\n"); r = WaitForSingleObject( handle, 0 ); @@ -335,7 +335,7 @@ static void test_ffcn(void) r = RemoveDirectoryW( subdir ); ok( r == TRUE, "failed to remove subdir\n"); - r = WaitForSingleObject( handle, 0 ); + r = WaitForSingleObject( handle, 1000 ); ok( r == WAIT_OBJECT_0, "should be ready\n"); r = WaitForSingleObject( handle, 0 );
participants (1)
-
Alexandre Julliard