summaryrefslogtreecommitdiff
path: root/test/malloc/tst-malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/malloc/tst-malloc.c')
-rw-r--r--test/malloc/tst-malloc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/malloc/tst-malloc.c b/test/malloc/tst-malloc.c
index 95d8a6c50..468e1d4ba 100644
--- a/test/malloc/tst-malloc.c
+++ b/test/malloc/tst-malloc.c
@@ -54,16 +54,9 @@ main (void)
/* realloc (p, 0) == free (p). */
p = realloc (p, 0);
-#ifdef __MALLOC_GLIBC_COMPAT__
- if (!p)
-#else
if (p != NULL)
-#endif
merror ("realloc (p, 0) failed.");
-#ifdef __MALLOC_GLIBC_COMPAT__
- free (p);
-#endif
p = malloc (0);
#if !defined(__UCLIBC__) || defined(__MALLOC_GLIBC_COMPAT__)
if (p == NULL)
@@ -73,16 +66,8 @@ main (void)
merror ("malloc (0) failed.");
p = realloc (p, 0);
-#ifdef __MALLOC_GLIBC_COMPAT__
- if (!p)
-#else
if (p != NULL)
-#endif
merror ("realloc (p, 0) failed.");
-#ifdef __MALLOC_GLIBC_COMPAT__
- free (p);
-#endif
-
return errors != 0;
}