2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>

* malloc04/init.c: Fix tests broken in warning pass.
This commit is contained in:
Joel Sherrill
2011-05-06 17:29:25 +00:00
parent 2a6ed0aac2
commit c4239324ca
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloc04/init.c: Fix tests broken in warning pass.
2011-05-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
* ftp01/.cvsignore, ftp01/Makefile.am, ftp01/ftp01.doc,

View File

@@ -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;