diff options
Diffstat (limited to 'testsuites/libtests/malloc04/init.c')
-rw-r--r-- | testsuites/libtests/malloc04/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/libtests/malloc04/init.c b/testsuites/libtests/malloc04/init.c index f5d371812d..83d5063e14 100644 --- a/testsuites/libtests/malloc04/init.c +++ b/testsuites/libtests/malloc04/init.c @@ -111,23 +111,23 @@ rtems_task Init( sbrk_count = 0; RTEMS_Malloc_Initialize( NULL, 0, 64 ); p1 = malloc(64); - rtems_test_assert( p1 ); + rtems_test_assert( p1 == NULL ); p2 = malloc(64); - rtems_test_assert( p2 ); + rtems_test_assert( p2 == NULL ); p3 = malloc(48); rtems_test_assert( p3 ); p4 = malloc(48); - rtems_test_assert( p4 ); + rtems_test_assert( p4 == NULL ); puts( "Initialize heap with no memory (sbrk aligned)" ); offset = 0; sbrk_count = 0; RTEMS_Malloc_Initialize( NULL, 0, 64 ); p1 = malloc(64); - rtems_test_assert( p1 ); + rtems_test_assert( p1 == NULL ); puts( "Set sbrk amount in heap to 0" ); offset = 0; |