Author: tfaber
Date: Sat Sep 19 12:39:01 2015
New Revision: 69282
URL:
http://svn.reactos.org/svn/reactos?rev=69282&view=rev
Log:
[KMTESTS:KE]
- Make KeEvent test count constant to prevent it from appearing flaky in Testman
Modified:
trunk/rostests/kmtests/ntos_ke/KeEvent.c
Modified: trunk/rostests/kmtests/ntos_ke/KeEvent.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_ke/KeEvent.c…
==============================================================================
--- trunk/rostests/kmtests/ntos_ke/KeEvent.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_ke/KeEvent.c [iso-8859-1] Sat Sep 19 12:39:01 2015
@@ -6,8 +6,6 @@
*/
#include <kmt_test.h>
-
-/* TODO: why does GCC have 3 tests less than MSVC?! */
#define CheckEvent(Event, ExpectedType, State, ExpectedWaitNext, \
Irql, ThreadList, ThreadCount) do \
@@ -177,7 +175,10 @@
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);
}