mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
add std::string test for macos
This commit is contained in:
parent
056c2ce45b
commit
01b460fedb
1 changed files with 13 additions and 4 deletions
|
@ -36,14 +36,16 @@ static void fail_aslr(); // issue #372
|
||||||
static void tsan_numa_test(); // issue #414
|
static void tsan_numa_test(); // issue #414
|
||||||
static void strdup_test(); // issue #445
|
static void strdup_test(); // issue #445
|
||||||
static void heap_thread_free_huge();
|
static void heap_thread_free_huge();
|
||||||
|
static void test_std_string(); // issue #697
|
||||||
|
|
||||||
static void test_stl_allocators();
|
static void test_stl_allocators();
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
mi_stats_reset(); // ignore earlier allocations
|
// mi_stats_reset(); // ignore earlier allocations
|
||||||
|
|
||||||
heap_thread_free_huge();
|
test_std_string();
|
||||||
|
// heap_thread_free_huge();
|
||||||
/*
|
/*
|
||||||
heap_thread_free_large();
|
heap_thread_free_large();
|
||||||
heap_no_delete();
|
heap_no_delete();
|
||||||
|
@ -56,7 +58,7 @@ int main() {
|
||||||
test_mt_shutdown();
|
test_mt_shutdown();
|
||||||
*/
|
*/
|
||||||
//fail_aslr();
|
//fail_aslr();
|
||||||
mi_stats_print(NULL);
|
// mi_stats_print(NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,6 +198,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
|
// Issue #204
|
||||||
static volatile void* global_p;
|
static volatile void* global_p;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue