summaryrefslogtreecommitdiffstats
path: root/testsuites/itrontests/itrontask02
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-08 17:52:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-08 17:52:47 +0000
commitd35734dd77149fc96d3a282c16d6eb4c84ec3d66 (patch)
tree526e8f6ccce004b986823b5a00e3ecd070ff2cff /testsuites/itrontests/itrontask02
parent2009-12-08 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d35734dd77149fc96d3a282c16d6eb4c84ec3d66.tar.bz2
2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* itronmbf01/init.c, itronsem01/init.c, itronsem01/system.h, itrontask02/dormant.c, itrontask02/init.c, itrontask03/init.c, itrontask03/preempt.c: Use rtems_test_assert() consistently instead of system assert(). rtems_test_assert() is designed to integrate into the RTEMS test suite infrastructure.
Diffstat (limited to 'testsuites/itrontests/itrontask02')
-rw-r--r--testsuites/itrontests/itrontask02/dormant.c3
-rw-r--r--testsuites/itrontests/itrontask02/init.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/testsuites/itrontests/itrontask02/dormant.c b/testsuites/itrontests/itrontask02/dormant.c
index 42cab19dbc..24f60ac539 100644
--- a/testsuites/itrontests/itrontask02/dormant.c
+++ b/testsuites/itrontests/itrontask02/dormant.c
@@ -18,7 +18,6 @@
* $Id$
*/
-#include <assert.h>
#include "system.h"
void Dormant_task(void)
@@ -27,7 +26,7 @@ void Dormant_task(void)
ext_tsk( );
puts( "ERROR==>ext_tsk of DORMANT returned" );
- assert(0);
+ rtems_test_assert(0);
}
diff --git a/testsuites/itrontests/itrontask02/init.c b/testsuites/itrontests/itrontask02/init.c
index 6bff1fd82c..df2691bb23 100644
--- a/testsuites/itrontests/itrontask02/init.c
+++ b/testsuites/itrontests/itrontask02/init.c
@@ -10,7 +10,7 @@
*
* Output parameters: NONE
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -23,7 +23,6 @@
#define CONFIGURE_INIT
#include "system.h"
#include <stdio.h>
-#include <assert.h>
void ITRON_Init( void )
{
@@ -331,7 +330,7 @@ void ITRON_Init( void )
/* Call from task independent portion to cause E_OBJ
puts( "Init - chg_pri - change priority of TSK_SELF - E_OBJ" );
status = chg_pri( XXX - INTERRUPT, 1 );
- assert( status == E_OBJ );
+ rtems_test_assert( status == E_OBJ );
*/
puts( "Init - chg_pri - task is DORMANT - E_OBJ" );
@@ -410,7 +409,7 @@ void ITRON_Init( void )
/* XXX Call from task independent portion to cause E_ID
puts( "Init - ref_tsk - reference INTERRUPT - E_ID" );
status = ref_tsk( &pk_rtsk, TSK_SELF );
- assert( status == E_ID );
+ rtems_test_assert( status == E_ID );
*/
puts( "Init - ref_tsk - task does not exist - E_NOEXS" );