Make sure that the test thread doesn't run while other tests are running.
Florian Köberle
florian at fkoeberle.de
Fri Jan 30 04:41:31 CST 2009
---
dlls/user32/tests/menu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index 6ee28a3..d019b92 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -1892,6 +1892,8 @@ static void test_menu_input(void) {
break;
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
}
+ // Make sure that the thread doesn't run while other tests are running
+ ok (WAIT_OBJECT_0 == WaitForSingleObject(hThread, 10000), "Test thread did not terminate within 10 seconds.");
DestroyWindow(hWnd);
}
--
1.5.4.3
--------------080605070408080903000401--
More information about the wine-devel
mailing list