diff --git a/test/main-override.cpp b/test/main-override.cpp index 65df79f1..4f4799f8 100644 --- a/test/main-override.cpp +++ b/test/main-override.cpp @@ -37,14 +37,18 @@ static void fail_aslr(); // issue #372 static void tsan_numa_test(); // issue #414 static void strdup_test(); // issue #445 static void bench_alloc_large(void); // issue #xxx -static void test_large_migrate(void); // issue #691 +//static void test_large_migrate(void); // issue #691 static void heap_thread_free_huge(); +static void test_std_string(); // issue #697 static void test_stl_allocators(); int main() { - mi_stats_reset(); // ignore earlier allocations + // mi_stats_reset(); // ignore earlier allocations + + test_std_string(); + // heap_thread_free_huge(); /* heap_thread_free_huge(); heap_thread_free_large(); @@ -58,11 +62,10 @@ int main() { */ // test_stl_allocators(); // test_mt_shutdown(); - test_large_migrate(); + // test_large_migrate(); //fail_aslr(); - bench_alloc_large(); - mi_stats_print(NULL); + // mi_stats_print(NULL); return 0; } @@ -177,7 +180,7 @@ static void test_stl_allocators() { #endif } - +#if 0 // issue #691 static char* cptr; @@ -211,6 +214,7 @@ static void test_large_migrate(void) { */ return; } +#endif // issue 445 static void strdup_test() { @@ -237,6 +241,13 @@ static void heap_no_delete() { } +// Issue #697 +static void test_std_string() { + std::string path = "/Users/xxxx/Library/Developer/Xcode/DerivedData/xxxxxxxxxx/Build/Intermediates.noindex/xxxxxxxxxxx/arm64/XX_lto.o/0.arm64.lto.o"; + std::string path1 = "/Users/xxxx/Library/Developer/Xcode/DerivedData/xxxxxxxxxx/Build/Intermediates.noindex/xxxxxxxxxxx/arm64/XX_lto.o/1.arm64.lto.o"; + std::cout << path + "\n>>> " + path1 + "\n>>> " << std::endl; +} + // Issue #204 static volatile void* global_p;