summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxclock/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxclock/init.c')
-rw-r--r--testsuites/psxtests/psxclock/init.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c
index 43d5b4d639..ac34d4ccde 100644
--- a/testsuites/psxtests/psxclock/init.c
+++ b/testsuites/psxtests/psxclock/init.c
@@ -155,6 +155,15 @@ rtems_task Init(
rtems_test_assert( sc == -1 );
rtems_test_assert( errno == EINVAL );
+ /* this is actually a small delay */
+ tv.tv_sec = 0;
+ tv.tv_nsec = 1;
+ puts( "Init: nanosleep - delay so small results in one tick" );
+ sc = nanosleep ( &tv, &tr );
+ rtems_test_assert( !sc );
+ rtems_test_assert( !tr.tv_sec );
+ rtems_test_assert( !tr.tv_nsec );
+
/* use nanosleep to yield */
tv.tv_sec = 0;
@@ -200,7 +209,7 @@ rtems_task Init(
rtems_test_assert( !sc );
printf( ctime( &tv.tv_sec ) );
- puts( "" );
+ empty_line();
puts( "clock_gettime - CLOCK_THREAD_CPUTIME -- ENOSYS" );
#if defined(_POSIX_THREAD_CPUTIME)
{