diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index d706173fa5..e9df15d8db 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,8 @@ +2010-04-25 Joel Sherrill + + * psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init() + thread can reliably reach the pthread_join() call. + 2010-04-25 Joel Sherrill * psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c index 5577a9ab62..73719ddbba 100644 --- a/testsuites/psxtests/psx07/init.c +++ b/testsuites/psxtests/psx07/init.c @@ -583,7 +583,7 @@ void *POSIX_Init( puts( "Init - pthread_attr_setinheritsched - EXPLICIT - SUCCESSFUL" ); status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); - rtems_test_assert( !status ); + rtems_test_assert( !status ); schedparam.sched_ss_repl_period.tv_sec = 3; schedparam.sched_ss_repl_period.tv_nsec = 3; diff --git a/testsuites/psxtests/psx07/task.c b/testsuites/psxtests/psx07/task.c index d288b88b40..8256aa5639 100644 --- a/testsuites/psxtests/psx07/task.c +++ b/testsuites/psxtests/psx07/task.c @@ -39,6 +39,11 @@ void *Task_2( int i = 0; time_t now, start; + /* + * sleep long enough to let the init thread join with us. + */ + usleep(10000); + /* * Change our priority so we are running at a logically higher * priority than our "ss_high_priority". This should result in