diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-12-08 17:52:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-12-08 17:52:56 +0000 |
commit | 9e7d02a3dcd0b4b38f13c11214a597d67c6aeb94 (patch) | |
tree | 6947be73e333886d3388289cbcb5efbf58234f9b /testsuites/sptests/sp63 | |
parent | 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-9e7d02a3dcd0b4b38f13c11214a597d67c6aeb94.tar.bz2 |
2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'testsuites/sptests/sp63')
-rw-r--r-- | testsuites/sptests/sp63/init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/sptests/sp63/init.c b/testsuites/sptests/sp63/init.c index c1d601177c..d461a4bf10 100644 --- a/testsuites/sptests/sp63/init.c +++ b/testsuites/sptests/sp63/init.c @@ -30,19 +30,19 @@ void test_case_one(void) puts( "Init - _Heap_Initialize (for test one) - OK" ); heap_size = _Heap_Initialize( &Heap, Memory, sizeof(Memory), 8 ); printf( "Init - Heap size=%" PRIu32 "\n", heap_size ); - assert( heap_size ); + rtems_test_assert( heap_size ); puts( "Init - _Heap_Allocate - too large size (overflow)- not OK"); ptr1 = _Heap_Allocate( &Heap, UINTPTR_MAX ); - assert( !ptr1 ); + rtems_test_assert( !ptr1 ); puts( "Init - _Heap_Allocate_aligned - OK"); ptr1 = _Heap_Allocate_aligned( &Heap, 64, 32 ); - assert( ptr1 ); + rtems_test_assert( ptr1 ); puts( "Init - _Heap_Resize_block - OK"); hc = _Heap_Resize_block( &Heap, ptr1, 4, &old, &avail ); - assert( !hc ); + rtems_test_assert( !hc ); } /* @@ -60,15 +60,15 @@ void test_case_two(void) puts( "\nInit - _Heap_Initialize (for test two) - OK" ); heap_size = _Heap_Initialize( &Heap, Memory, sizeof(Memory), 8 ); printf( "Init - Heap size=%" PRIu32 "\n", heap_size ); - assert( heap_size ); + rtems_test_assert( heap_size ); puts( "Init - _Heap_Allocate_aligned - OK"); ptr1 = _Heap_Allocate_aligned( &Heap, 64, 4 ); - assert( ptr1 ); + rtems_test_assert( ptr1 ); puts( "Init - _Heap_Resize_block - OK"); hc = _Heap_Resize_block( &Heap, ptr1, 56, &old, &avail ); - assert( !hc ); + rtems_test_assert( !hc ); } /* |