diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-05 21:14:24 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-05 21:14:24 +0000 |
commit | 68e2f0746e09fb33ef4e9139c1e5d361c90059e3 (patch) | |
tree | 070f9ee5184ae5e7deee8a56dfc04b77168e7dea /testsuites/psxtests/psx01/init.c | |
parent | 2007-04-05 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-68e2f0746e09fb33ef4e9139c1e5d361c90059e3.tar.bz2 |
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* psx01/init.c, psx01/psx01.scn: Adjust test to account for nanosleep()
behavior more closely matching GNU/Linux.
Diffstat (limited to 'testsuites/psxtests/psx01/init.c')
-rw-r--r-- | testsuites/psxtests/psx01/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c index 4aa3cb7d81..5a7547e0b8 100644 --- a/testsuites/psxtests/psx01/init.c +++ b/testsuites/psxtests/psx01/init.c @@ -142,7 +142,8 @@ void *POSIX_Init( tv.tv_nsec = 0; puts( "Init: nanosleep - negative seconds small delay " ); status = nanosleep ( &tv, &tr ); - assert( !status ); + assert( status == -1 ); + assert( errno == EINVAL ); /* use nanosleep to yield */ |