user32/tests: Avoid a race with the get/set window text threads.

This commit is contained in:
Alexandre Julliard 2015-02-24 16:19:46 +09:00
parent 4e87b952b3
commit a5ec8bf8b0
1 changed files with 2 additions and 2 deletions

View File

@ -5794,7 +5794,7 @@ static void test_gettext(void)
num_msgs++; num_msgs++;
} }
CloseHandle( thread ); 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 */ /* test interthread SetWindowText */
num_msgs = 0; num_msgs = 0;
@ -5807,7 +5807,7 @@ static void test_gettext(void)
num_msgs++; num_msgs++;
} }
CloseHandle( thread ); 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; num_gettext_msgs = 0;
memset( buf, 0, sizeof(buf) ); memset( buf, 0, sizeof(buf) );