Loading...
tests/magazine_medium_test.c libmalloc-646.0.13 libmalloc-409.81.2
--- libmalloc/libmalloc-646.0.13/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"
@@ -74,7 +71,7 @@
 
 
 T_DECL(medium_realloc_madvise_headers, "medium realloc in place maintains madvise headers",
-	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR),T_META_TAG_VM_PREFERRED)
+	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR))
 {
 	struct rack_s rack;
 	medium_test_rack_setup(&rack);
@@ -103,7 +100,7 @@
 }
 
 T_DECL(free_end_of_region, "End of region's footer is marked dirty",
-	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR), T_META_TAG_VM_PREFERRED)
+	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR))
 {
 	// Check that the headers for the last block in a region are correct
 	// when the block has been coalesced and is using an intrusive free list.
@@ -158,7 +155,7 @@
 }
 
 T_DECL(madvise_scale_factor, "madvise_scale_factor changes window size",
-	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR), T_META_TAG_VM_PREFERRED)
+	   T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR))
 {
 	struct rack_s rack;
 	medium_test_rack_setup(&rack);
@@ -195,7 +192,7 @@
 }
 
 T_DECL(medium_free_deallocate, "check medium regions deallocate when empty",
-		T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR), T_META_TAG_VM_PREFERRED)
+		T_META_ENABLED(CONFIG_MEDIUM_ALLOCATOR))
 {
 	struct rack_s rack;
 	memset(&rack, 'a', sizeof(rack));
@@ -228,13 +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_SKIP("MallocMedium is not compiled on this platform");
-}
-
-#endif // CONFIG_MEDIUM_ALLOCATOR