Loading...
tests/magazine_medium_test.c libmalloc-792.80.2 libmalloc-409.81.2
--- libmalloc/libmalloc-792.80.2/tests/magazine_medium_test.c
+++ libmalloc/libmalloc-409.81.2/tests/magazine_medium_test.c
@@ -6,9 +6,6 @@
 //
 
 #include <darwintest.h>
-#include "../src/internal.h"
-
-#if CONFIG_MEDIUM_ALLOCATOR
 
 #include "../src/magazine_medium.c"
 #include "magazine_testing.h"
@@ -17,8 +14,7 @@
 uint64_t magazine_medium_madvise_window_scale_factor = 1;
 malloc_zero_policy_t malloc_zero_policy = MALLOC_ZERO_POLICY_DEFAULT;
 
-T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true), T_META_TAG_VM_PREFERRED,
-		T_META_TAG_NO_ALLOCATOR_OVERRIDE);
+T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true));
 
 static inline void
 medium_test_rack_setup(rack_t *rack)
@@ -74,8 +70,7 @@
 }
 
 
-T_DECL(medium_realloc_madvise_headers,
-		"medium realloc in place maintains madvise headers",
+T_DECL(medium_realloc_madvise_headers, "medium realloc in place maintains madvise headers",
 	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR))
 {
 	struct rack_s rack;
@@ -230,14 +225,3 @@
 	T_ASSERT_EQ(depot->mag_num_objects, 0, "no objects in depot after last free");
 	T_ASSERT_EQ(depot->num_bytes_in_magazine, 0ul, "no region in depot after last free");
 }
-
-#else // CONFIG_MEDIUM_ALLOCATOR
-
-// binaries are required to contain at least 1 test
-T_DECL(medium_test_skip, "skip medium tests", T_META_TAG_VM_PREFERRED,
-		T_META_TAG_NO_ALLOCATOR_OVERRIDE)
-{
-	T_SKIP("MallocMedium is not compiled on this platform");
-}
-
-#endif // CONFIG_MEDIUM_ALLOCATOR