summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-06 17:29:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-06 17:29:25 +0000
commitc4239324ca5d7ce2b54c27ee7829012f7652304f (patch)
tree55fd4dbd26b68f74b346c87363956e80514a986d /testsuites/libtests
parent2011-05-06 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-c4239324ca5d7ce2b54c27ee7829012f7652304f.tar.bz2
2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloc04/init.c: Fix tests broken in warning pass.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/ChangeLog4
-rw-r--r--testsuites/libtests/malloc04/init.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog
index 9c73499ff2..910ca72597 100644
--- a/testsuites/libtests/ChangeLog
+++ b/testsuites/libtests/ChangeLog
@@ -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,
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;