[KMTESTS:KE]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 19 Sep 2015 11:27:18 +0000 (11:27 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 19 Sep 2015 11:27:18 +0000 (11:27 +0000)
- Don't skip most of the KeEvent test on checked builds
- Don't try to run things at stupid IRQLs

svn path=/trunk/; revision=69279

rostests/kmtests/ntos_ke/KeEvent.c

index e6d45db..adcc85a 100644 (file)
@@ -225,15 +225,12 @@ START_TEST(KeEvent)
 {
     KEVENT Event;
     KIRQL Irql;
 {
     KEVENT Event;
     KIRQL Irql;
-    KIRQL Irqls[] = { PASSIVE_LEVEL, APC_LEVEL, DISPATCH_LEVEL, HIGH_LEVEL };
+    KIRQL Irqls[] = { PASSIVE_LEVEL, APC_LEVEL, DISPATCH_LEVEL };
     INT i;
     KPRIORITY PriorityIncrement;
 
     for (i = 0; i < sizeof Irqls / sizeof Irqls[0]; ++i)
     {
     INT i;
     KPRIORITY PriorityIncrement;
 
     for (i = 0; i < sizeof Irqls / sizeof Irqls[0]; ++i)
     {
-        /* DRIVER_IRQL_NOT_LESS_OR_EQUAL (TODO: on MP only?) */
-        if (Irqls[i] > DISPATCH_LEVEL && KmtIsCheckedBuild)
-            return;
         KeRaiseIrql(Irqls[i], &Irql);
         TestEventFunctional(&Event, NotificationEvent, Irqls[i]);
         TestEventFunctional(&Event, SynchronizationEvent, Irqls[i]);
         KeRaiseIrql(Irqls[i], &Irql);
         TestEventFunctional(&Event, NotificationEvent, Irqls[i]);
         TestEventFunctional(&Event, SynchronizationEvent, Irqls[i]);
@@ -243,7 +240,7 @@ START_TEST(KeEvent)
     for (i = 0; i < sizeof Irqls / sizeof Irqls[0]; ++i)
     {
         /* creating threads above DISPATCH_LEVEL... nope */
     for (i = 0; i < sizeof Irqls / sizeof Irqls[0]; ++i)
     {
         /* creating threads above DISPATCH_LEVEL... nope */
-        if (Irqls[i] >= DISPATCH_LEVEL && KmtIsCheckedBuild)
+        if (Irqls[i] >= DISPATCH_LEVEL)
             continue;
         KeRaiseIrql(Irqls[i], &Irql);
         trace("IRQL: %u\n", Irqls[i]);
             continue;
         KeRaiseIrql(Irqls[i], &Irql);
         trace("IRQL: %u\n", Irqls[i]);