From 9e7d02a3dcd0b4b38f13c11214a597d67c6aeb94 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 8 Dec 2009 17:52:56 +0000 Subject: 2009-12-08 Joel Sherrill * sp18/init.c, sp31/task1.c, sp43/init.c, sp63/init.c, sp64/init.c, spfatal10/testcase.h, spfatal11/testcase.h, spobjgetnext/init.c, spwkspace/init.c: Use rtems_test_assert() consistently instead of system assert(). rtems_test_assert() is designed to integrate into the RTEMS test suite infrastructure. --- testsuites/sptests/spobjgetnext/init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testsuites/sptests/spobjgetnext') diff --git a/testsuites/sptests/spobjgetnext/init.c b/testsuites/sptests/spobjgetnext/init.c index 42fcb410c0..9c5161367b 100644 --- a/testsuites/sptests/spobjgetnext/init.c +++ b/testsuites/sptests/spobjgetnext/init.c @@ -74,27 +74,27 @@ rtems_task Init( puts( "Init - _Objects_Get_next - NULL object information" ); o = _Objects_Get_next( NULL, main_task, &location, &id ); - assert( o == NULL ); + rtems_test_assert( o == NULL ); puts( "Init - _Objects_Get_next - NULL location" ); o = _Objects_Get_next( info, main_task, NULL, &id ); - assert( o == NULL ); + rtems_test_assert( o == NULL ); puts( "Init - _Objects_Get_next - NULL id" ); o = _Objects_Get_next( info, main_task, &location, NULL ); - assert( o == NULL ); + rtems_test_assert( o == NULL ); /* XXX push the three NULL error cases */ /* simple case of only all tasks in the system, starting at initial */ count = scan_objects( info, OBJECTS_ID_INITIAL_INDEX ); printf( "%d RTEMS Task%s\n", count, ((count == 1) ? "" : "s") ); - assert( count == 1 ); + rtems_test_assert( count == 1 ); /* simple case of only 1 task in the system, starting at that task */ count = scan_objects( info, main_task ); printf( "%d RTEMS Task%s\n", count, ((count == 1) ? "" : "s") ); - assert( count == 1 ); + rtems_test_assert( count == 1 ); /* XXX create >= 1 task and make sure the counts are correct when */ /* XXX you start the search at initial, first id, arbitrary id */ -- cgit v1.2.3