|
From: <sv...@va...> - 2009-02-17 04:12:51
|
Author: njn
Date: 2009-02-17 04:12:46 +0000 (Tue, 17 Feb 2009)
New Revision: 9191
Log:
Make these compile on Darwin.
Modified:
branches/DARWIN/massif/tests/malloc_usable.c
branches/DARWIN/memcheck/tests/malloc_usable.c
Modified: branches/DARWIN/massif/tests/malloc_usable.c
===================================================================
--- branches/DARWIN/massif/tests/malloc_usable.c 2009-02-17 04:00:35 UTC (rev 9190)
+++ branches/DARWIN/massif/tests/malloc_usable.c 2009-02-17 04:12:46 UTC (rev 9191)
@@ -14,7 +14,7 @@
int* x = malloc(99);
// DDD: would be better to have a HAVE_MALLOC_USABLE_SIZE variable here
-# if !defined(_AIX)
+# if !defined(_AIX) && !defined(__APPLE__)
assert(104 == malloc_usable_size(x) ||
112 == malloc_usable_size(x));
assert( 0 == malloc_usable_size(NULL));
Modified: branches/DARWIN/memcheck/tests/malloc_usable.c
===================================================================
--- branches/DARWIN/memcheck/tests/malloc_usable.c 2009-02-17 04:00:35 UTC (rev 9190)
+++ branches/DARWIN/memcheck/tests/malloc_usable.c 2009-02-17 04:12:46 UTC (rev 9191)
@@ -14,7 +14,7 @@
int* x = malloc(99);
// DDD: would be better to have a HAVE_MALLOC_USABLE_SIZE variable here
-# if !defined(_AIX)
+# if !defined(_AIX) && !defined(__APPLE__)
assert(99 == malloc_usable_size(x));
assert( 0 == malloc_usable_size(NULL));
assert( 0 == malloc_usable_size((void*)0xdeadbeef));
|