Author: tfaber
Date: Sat Sep 28 09:55:29 2013
New Revision: 60406
URL: http://svn.reactos.org/svn/reactos?rev=60406&view=rev
Log:
[NTDLL_APITEST]
- Test that NtSetTimerResolution appropriately returns STATUS_TIMER_RESOLUTION_NOT_SET. Patch by Aleksandar Andrejevic.
CORE-7387
Modified:
trunk/rostests/apitests/ntdll/Timer.c
Modified: trunk/rostests/apitests/ntdll/Timer.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/Timer.c?re…
==============================================================================
--- trunk/rostests/apitests/ntdll/Timer.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/Timer.c [iso-8859-1] Sat Sep 28 09:55:29 2013
@@ -75,4 +75,12 @@
/* Since we have changed the resolution earlier, it returns STATUS_SUCCESS. */
ok_hex(Status, STATUS_SUCCESS);
+
+ /* Get the current timer resolution again */
+ Status = NtSetTimerResolution(0, /* Ignored */
+ FALSE, /* Don't change resolution */
+ &CurrentResolution);
+
+ /* The resolution is not changed now, so it should return STATUS_TIMER_RESOLUTION_NOT_SET */
+ ok_hex(Status, STATUS_TIMER_RESOLUTION_NOT_SET);
}