summaryrefslogtreecommitdiff
path: root/test/malloc/malloc.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-03-17 03:00:05 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-03-17 03:00:05 +0000
commitfc6389aa6a03de5c88ea89a75f0992e65f7c4dc8 (patch)
tree9c9f29c56d961284d621ea9756425a5e73e74c56 /test/malloc/malloc.c
parent18811a88f74a8a0d2d54e275cd632b47817458a1 (diff)
Fix 'realloc' and revert previous changes to tests. malloc tests all pass regardless of the setting of MALLOC_GLIBC_COMPAT.
Diffstat (limited to 'test/malloc/malloc.c')
-rw-r--r--test/malloc/malloc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/malloc/malloc.c b/test/malloc/malloc.c
index b35e329c0..d63856845 100644
--- a/test/malloc/malloc.c
+++ b/test/malloc/malloc.c
@@ -70,11 +70,7 @@ int test2(void)
ptr = malloc(100);
ptr = realloc(ptr, 0);
-#ifdef __MALLOC_GLIBC_COMPAT__
- if (!ptr) {
-#else
if (ptr) {
-#endif
printf("realloc(,0) failed\n");
++ret;
free(ptr);