[KMTESTS:KE]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 19 Sep 2015 12:39:01 +0000 (12:39 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 19 Sep 2015 12:39:01 +0000 (12:39 +0000)
- Make KeEvent test count constant to prevent it from appearing flaky in Testman

svn path=/trunk/; revision=69282

rostests/kmtests/ntos_ke/KeEvent.c

index 247fb0b..ba84962 100644 (file)
@@ -7,8 +7,6 @@
 
 #include <kmt_test.h>
 
 
 #include <kmt_test.h>
 
-/* TODO: why does GCC have 3 tests less than MSVC?! */
-
 #define CheckEvent(Event, ExpectedType, State, ExpectedWaitNext,                \
                             Irql, ThreadList, ThreadCount) do                   \
 {                                                                               \
 #define CheckEvent(Event, ExpectedType, State, ExpectedWaitNext,                \
                             Irql, ThreadList, ThreadCount) do                   \
 {                                                                               \
@@ -177,7 +175,10 @@ TestEventConcurrent(
         while (!Threads[i].Signal)
         {
             Status = KeDelayExecutionThread(KernelMode, FALSE, &ShortTimeout);
         while (!Threads[i].Signal)
         {
             Status = KeDelayExecutionThread(KernelMode, FALSE, &ShortTimeout);
-            ok_eq_hex(Status, STATUS_SUCCESS);
+            if (Status != STATUS_SUCCESS)
+            {
+                ok_eq_hex(Status, STATUS_SUCCESS);
+            }
         }
         CheckEvent(Event, Type, 0L, FALSE, OriginalIrql, ThreadObjects, i + 1);
     }
         }
         CheckEvent(Event, Type, 0L, FALSE, OriginalIrql, ThreadObjects, i + 1);
     }