[KMTEST]
[reactos.git] / rostests / drivers / kmtest / ntos_ex.c
index 73f47c6..8edf7fe 100644 (file)
@@ -27,7 +27,7 @@
 #include <ndk/ntndk.h>
 #include "kmtest.h"
 
-//#define NDEBUG
+#define NDEBUG
 #include "debug.h"
 
 /* PRIVATE FUNCTIONS ***********************************************************/
@@ -39,14 +39,15 @@ TestTimerApcRoutine(IN PVOID TimerContext,
                     IN LONG TimerHighValue)
 
 {
-    DPRINT("Timer Apc called!\n");
     ULONG *ApcCount = (ULONG *)TimerContext;
+    DPRINT("Timer Apc called!\n");
     (*ApcCount)++;
 }
 
+/* PUBLIC FUNCTIONS *************************************************************/
 
 VOID
-ExTimerTest()
+ExTimerTest(HANDLE KeyHandle)
 {
     UNICODE_STRING TimerName;
     OBJECT_ATTRIBUTES ObjectAttributes;
@@ -167,13 +168,5 @@ ExTimerTest()
     Status = ZwClose(TimerHandle);
     ok(Status == STATUS_SUCCESS, "ZwClose failed with Status=0x%08lX", Status);
 
-    FinishTest("NTOSKRNL Executive Timer");
-}
-
-/* PUBLIC FUNCTIONS ***********************************************************/
-
-VOID
-NtoskrnlExecutiveTests()
-{
-    ExTimerTest();
+    FinishTest(KeyHandle, L"ExTimerTest");
 }