summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/ticker/tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/samples/ticker/tasks.c')
-rw-r--r--testsuites/samples/ticker/tasks.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/samples/ticker/tasks.c b/testsuites/samples/ticker/tasks.c
index e59557ed91..d9c3791185 100644
--- a/testsuites/samples/ticker/tasks.c
+++ b/testsuites/samples/ticker/tasks.c
@@ -18,8 +18,6 @@
*/
#include "system.h"
-#include <stdio.h>
-#include <stdlib.h>
rtems_task Test_task(
rtems_task_argument unused
@@ -36,7 +34,7 @@ rtems_task Test_task(
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
if ( time.second >= 35 ) {
puts( "*** END OF CLOCK TICK TEST ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
put_name( Task_name[ task_index ], FALSE );
print_time( " - rtems_clock_get - ", &time, "\n" );