summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 21:14:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 21:14:24 +0000
commit68e2f0746e09fb33ef4e9139c1e5d361c90059e3 (patch)
tree070f9ee5184ae5e7deee8a56dfc04b77168e7dea /testsuites/psxtests/psx01/init.c
parent2007-04-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-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.c3
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 */