diff options
Diffstat (limited to 'src/cutest_sh_unix.c')
-rw-r--r-- | src/cutest_sh_unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cutest_sh_unix.c b/src/cutest_sh_unix.c index 57fb7e6..b4428cf 100644 --- a/src/cutest_sh_unix.c +++ b/src/cutest_sh_unix.c @@ -20,6 +20,7 @@ void Test_dnmalloc (CuTest *tc) { char * buf; char * area[256]; +#if !defined(USE_SYSTEM_MALLOC) && !defined(__clang__) /* test reuse of last freed chunk */ buf = malloc(1024); CuAssertPtrNotNull(tc, buf); @@ -27,7 +28,8 @@ void Test_dnmalloc (CuTest *tc) { area[0] = malloc(1024); CuAssertTrue(tc, buf == area[0]); free(area[0]); - +#endif + /* test realloc */ buf = malloc(16); CuAssertPtrNotNull(tc, buf); |