|
From: <sv...@va...> - 2011-08-14 06:46:03
|
Author: bart
Date: 2011-08-14 07:41:15 +0100 (Sun, 14 Aug 2011)
New Revision: 11976
Log:
memcheck/tests/sbfragment: Make this test pass on Darwin
Modified:
trunk/memcheck/tests/sbfragment.c
Modified: trunk/memcheck/tests/sbfragment.c
===================================================================
--- trunk/memcheck/tests/sbfragment.c 2011-08-14 06:16:17 UTC (rev 11975)
+++ trunk/memcheck/tests/sbfragment.c 2011-08-14 06:41:15 UTC (rev 11976)
@@ -77,8 +77,8 @@
printf ("after %d loops, last size block requested %lu\n", loop, bigsize);
// verify if superblock fragmentation occured
// We consider that an arena of up to 3 times more than bigsize is ok.
+ {
#if defined(HAVE_MALLINFO)
- {
struct mallinfo mallinfo_result;
mallinfo_result = mallinfo();
// Under valgrind, hblkhd is 0 : all the space is in arena.
@@ -90,9 +90,9 @@
(unsigned long) mallinfo_result.arena
+ (unsigned long) mallinfo_result.hblkhd);
else
+#endif
printf("reasonable heap usage\n");
}
-#endif
if (debug)
stats ("before freeing last block");
|