summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/ticker/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:45:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:45:40 +0000
commit7c1e69429a28adf03216c755bc1b4504c6e735b2 (patch)
tree891479b5bad29f5dc64d0a430f768d7514ecbec5 /testsuites/samples/ticker/init.c
parent2011-05-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-7c1e69429a28adf03216c755bc1b4504c6e735b2.tar.bz2
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* base_sp/apptask.c, base_sp/init.c, fileio/init.c, fileio/system.h, nsecs/init.c, ticker/init.c, ticker/system.h, ticker/tasks.c: Remove warnings.
Diffstat (limited to 'testsuites/samples/ticker/init.c')
-rw-r--r--testsuites/samples/ticker/init.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/testsuites/samples/ticker/init.c b/testsuites/samples/ticker/init.c
index 55f5e2ea13..05ab25802a 100644
--- a/testsuites/samples/ticker/init.c
+++ b/testsuites/samples/ticker/init.c
@@ -10,7 +10,7 @@
*
* Output parameters: NONE
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -52,6 +52,7 @@ rtems_task Init(
time.ticks = 0;
status = rtems_clock_set( &time );
+ directive_failed( status, "clock get" );
Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );
Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' );
@@ -61,18 +62,29 @@ rtems_task Init(
Task_name[ 1 ], 1, RTEMS_MINIMUM_STACK_SIZE * 2, RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES, &Task_id[ 1 ]
);
+ directive_failed( status, "create 1" );
+
status = rtems_task_create(
Task_name[ 2 ], 1, RTEMS_MINIMUM_STACK_SIZE * 2, RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES, &Task_id[ 2 ]
);
+ directive_failed( status, "create 2" );
+
status = rtems_task_create(
Task_name[ 3 ], 1, RTEMS_MINIMUM_STACK_SIZE * 2, RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES, &Task_id[ 3 ]
);
+ directive_failed( status, "create 3" );
status = rtems_task_start( Task_id[ 1 ], Test_task, 1 );
+ directive_failed( status, "start 1" );
+
status = rtems_task_start( Task_id[ 2 ], Test_task, 2 );
+ directive_failed( status, "start 2" );
+
status = rtems_task_start( Task_id[ 3 ], Test_task, 3 );
+ directive_failed( status, "start 3" );
status = rtems_task_delete( RTEMS_SELF );
+ directive_failed( status, "delete" );
}