summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx11/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psx11/init.c')
-rw-r--r--testsuites/psxtests/psx11/init.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/testsuites/psxtests/psx11/init.c b/testsuites/psxtests/psx11/init.c
index 088dcff40f..3fea79a3ea 100644
--- a/testsuites/psxtests/psx11/init.c
+++ b/testsuites/psxtests/psx11/init.c
@@ -52,7 +52,7 @@ void *POSIX_Init(
priority_1
);
status = pthread_setschedparam( Init_id, SCHED_FIFO, &param );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
param.sched_priority = priority_2;
@@ -61,7 +61,7 @@ void *POSIX_Init(
priority_2
);
status = pthread_setschedparam( Init_id, SCHED_RR, &param );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
param.sched_priority = priority_3;
@@ -70,59 +70,59 @@ void *POSIX_Init(
priority_3
);
status = pthread_setschedparam( Init_id, SCHED_OTHER, &param );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
/* create a thread as SCHED_FIFO */
printf(
"Init: create a thread of SCHED_FIFO with priority %d\n", priority_4 );
status = pthread_attr_init( &attr );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
attr.schedpolicy = SCHED_FIFO;
attr.schedparam.sched_priority = priority_4;
status = pthread_create( &Task_id, &attr, Task_1, NULL );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
puts( "Init: join with the other thread" );
status = pthread_join( Task_id, NULL );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
/* create a thread as SCHED_RR */
printf( "Init: create a thread of SCHED_RR with priority %d\n", priority_4 );
status = pthread_attr_init( &attr );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
attr.schedpolicy = SCHED_RR;
attr.schedparam.sched_priority = priority_4;
status = pthread_create( &Task_id, &attr, Task_1, NULL );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
puts( "Init: join with the other thread" );
status = pthread_join( Task_id, NULL );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
/* create a thread as SCHED_OTHER */
printf(
"Init: create a thread of SCHED_OTHER with priority %d\n", priority_4 );
status = pthread_attr_init( &attr );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
attr.schedpolicy = SCHED_OTHER;
attr.schedparam.sched_priority = priority_4;
status = pthread_create( &Task_id, &attr, Task_1, NULL );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
puts( "Init: join with the other thread" );
status = pthread_join( Task_id, NULL );
- rtems_test_assert( !status );
+ rtems_test_assert( !status );
puts( "*** END OF POSIX TEST 11 ***" );
rtems_test_exit( 0 );