From 9391f6d6637c752046cdfd89ae2eeea147496e44 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 Mar 2014 16:31:43 +0100 Subject: tests/samples: Use --- testsuites/samples/unlimited/init.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'testsuites/samples/unlimited/init.c') diff --git a/testsuites/samples/unlimited/init.c b/testsuites/samples/unlimited/init.c index a4eb1676bc..3b79af2afe 100644 --- a/testsuites/samples/unlimited/init.c +++ b/testsuites/samples/unlimited/init.c @@ -18,6 +18,8 @@ #include #include +const char rtems_test_name[] = "UNLIMITED TASK"; + rtems_id task_id[MAX_TASKS]; rtems_task Init( @@ -28,14 +30,14 @@ rtems_task Init( rtems_mode old_mode; uint32_t task; + TEST_BEGIN(); + /* lower the task priority to allow created tasks to execute */ rtems_task_set_priority( RTEMS_SELF, RTEMS_MAXIMUM_PRIORITY - 1, &old_priority); rtems_task_mode(RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode); - printf( "\n*** UNLIMITED TASK TEST ***\n" ); - /* * Invalid state if the task id is 0 */ @@ -47,7 +49,7 @@ rtems_task Init( test2(); test3(); - printf( "\n*** END OF UNLIMITED TASK TEST ***\n" ); + TEST_END(); exit( 0 ); } -- cgit v1.2.3