diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-13 20:36:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-09-13 20:36:36 +0000 |
commit | 88271c3308aef5db023687bf32ea30c60becc080 (patch) | |
tree | fd443cbf2d3209e8a1499c516773eb317a29624b /testsuites/psxtests/psxclock/psxclock.scn | |
parent | 2009-09-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-88271c3308aef5db023687bf32ea30c60becc080.tar.bz2 |
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, psx01/init.c, psx01/psx01.scn: Add new
test to exercise clock and delay services enabled when POSIX threads
are disabled. This is split from psx01. POSIX test suite now enabled
when POSIX threads are disabled so only enable tests which are
appropriate.
* psxclock/.cvsignore, psxclock/Makefile.am, psxclock/init.c,
psxclock/psxclock.doc, psxclock/psxclock.scn: New files.
Diffstat (limited to 'testsuites/psxtests/psxclock/psxclock.scn')
-rw-r--r-- | testsuites/psxtests/psxclock/psxclock.scn | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxclock/psxclock.scn b/testsuites/psxtests/psxclock/psxclock.scn new file mode 100644 index 0000000000..6814210d9b --- /dev/null +++ b/testsuites/psxtests/psxclock/psxclock.scn @@ -0,0 +1,31 @@ +*** POSIX CLOCK TEST *** +Init: clock_gettime - EINVAL (NULL timespec) +Init: clock_gettime - EINVAL (invalid clockid) +Init: clock_settime - EINVAL (invalid clockid) +Thu Jan 1 00:00:01 1970 +Init: clock_settime - before 1988 EINVAL +Init: clock_getres - EINVAL (invalid clockid) +Init: clock_getres - EINVAL (NULL resolution) +Init: clock_getres - SUCCESSFUL +Init: resolution = sec (0), nsec (10000000) + +Fri May 24 11:05:00 1996 +Init: clock_settime - SUCCESSFUL +Fri May 24 11:05:00 1996 +Fri May 24 11:05:00 1996 +Time since boot: (3, 10131000) +Fri May 24 11:05:03 1996 +Fri May 24 11:05:03 1996 +Init: seconds remaining (0) + +Init: nanosleep - EINVAL (NULL time) +Init: nanosleep - EINVAL (too many nanoseconds) +Init: nanosleep - negative seconds small delay +Init: nanosleep - yield with remaining +Init: nanosleep - yield with NULL time remaining +Init: nanosleep - 1.05 seconds +Fri May 24 11:05:06 1996 +Init: sec (0), nsec (0) remaining +Init: usleep - 1.35 seconds +Fri May 24 11:05:07 1996 +*** END OF POSIX CLOCK TEST *** |