From 8df57649b09f31a58660d9b3c2478195f15f40ce Mon Sep 17 00:00:00 2001 From: Zacchaeus Leung Date: Fri, 6 Aug 2021 11:20:41 -0400 Subject: Test needed for timer_create with CLOCK_MONOTONC the timer_create() method can use CLOCK_MONOTONIC but there was no test for this. Also it implements the functionality to create a CLOCK_MONOTONIC timer and gettime() . Closes #3888 --- testsuites/psxtests/psxtimer02/psxtimer02.scn | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuites/psxtests/psxtimer02/psxtimer02.scn') diff --git a/testsuites/psxtests/psxtimer02/psxtimer02.scn b/testsuites/psxtests/psxtimer02/psxtimer02.scn index e78425a32e..71638aa413 100644 --- a/testsuites/psxtests/psxtimer02/psxtimer02.scn +++ b/testsuites/psxtests/psxtimer02/psxtimer02.scn @@ -13,4 +13,9 @@ timer_settime - bad itimer value - negative nanosecond - EINVAL timer_settime - bad clock value - EINVAL timer_delete - OK timer_delete - bad id - EINVAL +timer_create (monotonic) - bad timer id pointer - EINVAL +timer_create (monotonic) - OK +timer_create (monotonic) - too many - EAGAIN +timer_settime (monotonic) - bad itimer value - previous time - EINVAL +timer_settime (monotonic) - bad id - EINVAL *** END OF POSIX Timers Test 02 *** -- cgit v1.2.3