summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/btree_test.c2
-rw-r--r--test/hash_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/btree_test.c b/test/btree_test.c
index df44081..ad6b6b7 100644
--- a/test/btree_test.c
+++ b/test/btree_test.c
@@ -460,7 +460,7 @@ main(int argc, char** argv)
}
printf("\n");
-#ifndef _WIN32
+#ifdef ZIX_WITH_TEST_MALLOC
const size_t total_n_allocs = test_malloc_get_n_allocs();
const size_t fail_n_elems = 1000;
printf("Testing 0 ... %zu failed allocations\n", total_n_allocs);
diff --git a/test/hash_test.c b/test/hash_test.c
index ea808e6..91c0127 100644
--- a/test/hash_test.c
+++ b/test/hash_test.c
@@ -208,7 +208,7 @@ main(void)
return 1;
}
-#ifndef _WIN32
+#ifdef ZIX_WITH_TEST_MALLOC
const size_t total_n_allocs = test_malloc_get_n_allocs();
printf("Testing 0 ... %zu failed allocations\n", total_n_allocs);
expect_failure = true;