diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-18 14:39:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-18 14:39:33 +0000 |
commit | 84f27fa8fac962af92cad5910f459ffc65222ac5 (patch) | |
tree | e7801b08f98bf7e430c75d4f18d79afdc62ea409 /testsuites/psxtests/psx01/init.c | |
parent | 2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-84f27fa8fac962af92cad5910f459ffc65222ac5.tar.bz2 |
2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* psx01/init.c, psx01/psx01.scn: Add test case for nanosleep with NULL
remaining pointer.
Diffstat (limited to 'testsuites/psxtests/psx01/init.c')
-rw-r--r-- | testsuites/psxtests/psx01/init.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c index ca56f58df6..0f44bd193f 100644 --- a/testsuites/psxtests/psx01/init.c +++ b/testsuites/psxtests/psx01/init.c @@ -168,12 +168,18 @@ void *POSIX_Init( tv.tv_sec = 0; tv.tv_nsec = 0; - puts( "Init: nanosleep - yield" ); + puts( "Init: nanosleep - yield with remaining" ); status = nanosleep ( &tv, &tr ); rtems_test_assert( !status ); rtems_test_assert( !tr.tv_sec ); rtems_test_assert( !tr.tv_nsec ); + puts( "Init: nanosleep - yield with NULL time remaining" ); + status = nanosleep ( &tv, NULL ); + rtems_test_assert( !status ); + rtems_test_assert( !tr.tv_sec ); + rtems_test_assert( !tr.tv_nsec ); + /* use nanosleep to delay */ tv.tv_sec = 3; |