summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx04
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-17 16:26:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-17 16:26:01 +0000
commitea6dbd0e1ced1582c5b33844b2c18287a9a0e3d9 (patch)
tree673a06b4e8fa7f3f4488c62c6be8261a58299b45 /testsuites/psxtests/psx04
parent2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ea6dbd0e1ced1582c5b33844b2c18287a9a0e3d9.tar.bz2
2009-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx04/init.c: Correct errors introduced by using different variable for return type when correcting typing warnings.
Diffstat (limited to 'testsuites/psxtests/psx04')
-rw-r--r--testsuites/psxtests/psx04/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c
index 54c7b5bb05..e09f298101 100644
--- a/testsuites/psxtests/psx04/init.c
+++ b/testsuites/psxtests/psx04/init.c
@@ -257,13 +257,13 @@ void *POSIX_Init(
puts( "Init: Firing alarm in 2 seconds" );
remaining = alarm( 2 );
- printf( "Init: %d seconds left on previous alarm\n", status );
- assert( status );
+ printf( "Init: %d seconds left on previous alarm\n", remaining );
+ assert( remaining == 5 );
puts( "Init: Wait 4 seconds for alarm" );
remaining = sleep( 4 );
- printf( "Init: %d seconds left in sleep\n", status );
- assert( status );
+ printf( "Init: %d seconds left in sleep\n", remaining );
+ assert( remaining == 2 );
/* test SIG_SETMASK case and returning oset of pthread_sigmask */