From ea6dbd0e1ced1582c5b33844b2c18287a9a0e3d9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 17 May 2009 16:26:01 +0000 Subject: [PATCH] 2009-05-17 Joel Sherrill * psx04/init.c: Correct errors introduced by using different variable for return type when correcting typing warnings. --- testsuites/psxtests/ChangeLog | 5 +++++ testsuites/psxtests/psx04/init.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index ed46cb2064..615512e6b6 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,8 @@ +2009-05-17 Joel Sherrill + + * psx04/init.c: Correct errors introduced by using different variable + for return type when correcting typing warnings. + 2009-05-15 Joel Sherrill * Makefile.am, configure.ac: Add new test to provide coverage analysis 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 */