diff options
| author | Kostya Serebryany <kcc@google.com> | 2012-05-22 07:44:30 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2012-05-22 07:44:30 +0000 |
| commit | 4fa4ac12901552b8b3033e6bf64f77692b248b30 (patch) | |
| tree | 1a1cc19f06c60dbde6592f412bf7cd44d65dc82b | |
| parent | 53b4b73be918a67828bb9c96570bf32bf441dd54 (diff) | |
| download | bcm5719-llvm-4fa4ac12901552b8b3033e6bf64f77692b248b30.tar.gz bcm5719-llvm-4fa4ac12901552b8b3033e6bf64f77692b248b30.zip | |
[asan] fix one test on 32-bit Mac 10.7; enable another test on Mac
llvm-svn: 157237
| -rw-r--r-- | compiler-rt/lib/asan/tests/asan_interface_test.cc | 3 | ||||
| -rw-r--r-- | compiler-rt/lib/asan/tests/asan_test.cc | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_interface_test.cc b/compiler-rt/lib/asan/tests/asan_interface_test.cc index 40e683166ce..43889058b65 100644 --- a/compiler-rt/lib/asan/tests/asan_interface_test.cc +++ b/compiler-rt/lib/asan/tests/asan_interface_test.cc @@ -363,8 +363,6 @@ TEST(AddressSanitizerInterface, SetErrorReportCallbackTest) { __asan_set_error_report_callback(NULL); } -#ifdef __linux__ -// http://code.google.com/p/address-sanitizer/issues/detail?id=51 TEST(AddressSanitizerInterface, GetOwnershipStressTest) { std::vector<char *> pointers; std::vector<size_t> sizes; @@ -385,4 +383,3 @@ TEST(AddressSanitizerInterface, GetOwnershipStressTest) { for (size_t i = 0, n = pointers.size(); i < n; i++) free(pointers[i]); } -#endif // __linux__ diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc index 3f251dd6fdf..de44b05ccc1 100644 --- a/compiler-rt/lib/asan/tests/asan_test.cc +++ b/compiler-rt/lib/asan/tests/asan_test.cc @@ -423,10 +423,11 @@ TEST(AddressSanitizer, LargeMallocTest) { TEST(AddressSanitizer, HugeMallocTest) { #ifdef __APPLE__ // It was empirically found out that 1215 megabytes is the maximum amount of - // memory available to the process under AddressSanitizer on Darwin. + // memory available to the process under AddressSanitizer on 32-bit Mac 10.6. + // 32-bit Mac 10.7 gives even less (< 1G). // (the libSystem malloc() allows allocating up to 2300 megabytes without // ASan). - size_t n_megs = __WORDSIZE == 32 ? 1200 : 4100; + size_t n_megs = __WORDSIZE == 32 ? 500 : 4100; #else size_t n_megs = __WORDSIZE == 32 ? 2600 : 4100; #endif |

