summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-10-04 05:33:00 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-10-04 05:33:00 +0000
commit9a45c987e2c458e4631ac18a437955d646b7560d (patch)
treef7cf6d2947f1a85a77f1f55b241e26bebecd5e61
parente5a55b9c5b8550142c94e828d54fad210ed4e55c (diff)
downloadmpc-9a45c987e2c458e4631ac18a437955d646b7560d.tar.gz
[tests/memory.c] removed debug code introduced for hydra tests
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1098 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/memory.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/memory.c b/tests/memory.c
index 9ad93b5..d4f8cf4 100644
--- a/tests/memory.c
+++ b/tests/memory.c
@@ -27,8 +27,6 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include <limits.h>
#include "gmp.h"
-#define TEST_MEMORY 0x1002001D0
-
#define __gmp_default_allocate malloc
#define __gmp_default_reallocate(p,old,new) realloc(p,new)
#define __gmp_default_free(p,size) free(p)
@@ -92,11 +90,6 @@ tests_allocate (size_t size)
h->size = size;
h->ptr = __gmp_default_allocate (size);
-#ifdef TEST_MEMORY
- if (h->ptr == (void*) TEST_MEMORY)
- fprintf (stderr, "tests_allocate: allocated %zu at 0x%lX\n",
- size, (unsigned long) h->ptr);
-#endif
return h->ptr;
}
@@ -133,11 +126,6 @@ tests_reallocate (void *ptr, size_t old_size, size_t new_size)
h->size = new_size;
h->ptr = __gmp_default_reallocate (ptr, old_size, new_size);
-#ifdef TEST_MEMORY
- if (h->ptr == (void*) TEST_MEMORY)
- fprintf (stderr, "tests_reallocate: reallocated from %zu to %zu at 0x%lX\n",
- old_size, new_size, (unsigned long) h->ptr);
-#endif
return h->ptr;
}
@@ -172,11 +160,6 @@ tests_free (void *ptr, size_t size)
struct header **hp = tests_free_find (ptr);
struct header *h = *hp;
-#ifdef TEST_MEMORY
- if (ptr == (void*) TEST_MEMORY)
- fprintf (stderr, "tests_free: free %zu at 0x%lX\n",
- size, (unsigned long) ptr);
-#endif
if (h->size != size)
{
/* Note: we should use the standard %zu to print sizes, but