From 1e8f970eaa10ff3ecdd60d0c5591ab48971c3293 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 28 Sep 2013 09:55:29 +0000 Subject: [PATCH] [NTDLL_APITEST] - Test that NtSetTimerResolution appropriately returns STATUS_TIMER_RESOLUTION_NOT_SET. Patch by Aleksandar Andrejevic. CORE-7387 svn path=/trunk/; revision=60406 --- rostests/apitests/ntdll/Timer.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rostests/apitests/ntdll/Timer.c b/rostests/apitests/ntdll/Timer.c index 1cebbd344f9..bfb9666dd10 100644 --- a/rostests/apitests/ntdll/Timer.c +++ b/rostests/apitests/ntdll/Timer.c @@ -75,4 +75,12 @@ START_TEST(TimerResolution) /* 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); } -- 2.17.1