[KERNEL32_WINETEST] Kill process that hangs on an unimplemented feature.
authorMark Jansen <mark.jansen@reactos.org>
Wed, 7 Jun 2017 20:40:42 +0000 (20:40 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Wed, 7 Jun 2017 20:40:42 +0000 (20:40 +0000)
svn path=/trunk/; revision=74947

rostests/winetests/kernel32/process.c

index e4553a3..6353646 100755 (executable)
@@ -2707,6 +2707,13 @@ static void test_WaitForJobObject(void)
 
     if (dwret == WAIT_TIMEOUT) /* Win 2000/XP */
     {
+#ifdef __REACTOS__
+        if (!ret)
+        {
+            ok(0, "HACK: Killing process to speed up the test\n");
+            TerminateProcess(pi.hProcess, 0);
+        }
+#endif
         CloseHandle(pi.hProcess);
         CloseHandle(pi.hThread);
         CloseHandle(job);