Alexandre Julliard : user32/tests: Avoid a race with the get/ set window text threads.
Module: wine Branch: master Commit: a5ec8bf8b07dd21fc6c4123302771fd60da53c18 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a5ec8bf8b07dd21fc6c4123302... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Feb 24 16:19:46 2015 +0900 user32/tests: Avoid a race with the get/set window text threads. --- dlls/user32/tests/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 0b67eea..d71e92a 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5794,7 +5794,7 @@ static void test_gettext(void) num_msgs++; } CloseHandle( thread ); - ok( num_msgs == 1, "got %u wakeups from MsgWaitForMultipleObjects\n", num_msgs ); + ok( num_msgs >= 1, "got %u wakeups from MsgWaitForMultipleObjects\n", num_msgs ); /* test interthread SetWindowText */ num_msgs = 0; @@ -5807,7 +5807,7 @@ static void test_gettext(void) num_msgs++; } CloseHandle( thread ); - ok( num_msgs == 1, "got %u wakeups from MsgWaitForMultipleObjects\n", num_msgs ); + ok( num_msgs >= 1, "got %u wakeups from MsgWaitForMultipleObjects\n", num_msgs ); num_gettext_msgs = 0; memset( buf, 0, sizeof(buf) );
participants (1)
-
Alexandre Julliard