Loading...
tests/malloc_zone_unregister_test.c libmalloc-474.0.13 libmalloc-317.121.1
--- libmalloc/libmalloc-474.0.13/tests/malloc_zone_unregister_test.c
+++ libmalloc/libmalloc-317.121.1/tests/malloc_zone_unregister_test.c
@@ -11,7 +11,7 @@
 #include <malloc/malloc.h>
 #include <stdlib.h>
 
-T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true), T_META_TAG_XZONE);
+T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true));
 
 extern int32_t malloc_num_zones;
 extern malloc_zone_t **malloc_zones;
@@ -58,9 +58,8 @@
 
   // Check that the custom zone is the default zone
   void *ptr2 = malloc(7);
-  T_EXPECT_EQ(malloc_zones[0], custom_zone, "custom zone is zone 0");
-  T_EXPECT_EQ(malloc_zone_from_ptr(ptr2), malloc_default_zone(), "we lookup the virtual zone for the custom zone");
-  T_EXPECT_TRUE(malloc_zone_claimed_address(custom_zone, ptr2), "custom zone claims ptr");
+  T_EXPECT_EQ(malloc_zone_from_ptr(ptr2), custom_zone, "can find custom zone for allocation");
+  T_EXPECT_TRUE(malloc_claimed_address(ptr2), "ptr from custom zone is claimed");
 
   free(ptr2);
   free(ptr);