Index: courgette/third_party/paged_array_unittest.cc |
diff --git a/courgette/third_party/paged_array_unittest.cc b/courgette/third_party/paged_array_unittest.cc |
index f65d68683bca0a69f2d50392faa66c108d643281..b177d1e2bb710126fbea63a7a98ecea18cdef234 100644 |
--- a/courgette/third_party/paged_array_unittest.cc |
+++ b/courgette/third_party/paged_array_unittest.cc |
@@ -14,6 +14,10 @@ class PagedArrayTest : public testing::Test { |
static const int kSize = 200 * 1024 * 1024 / sizeof(int); // 200MB |
}; |
+// Disable these tests under AddressSanitizer on Windows as it uses more memory |
dgarrett
2015/01/13 22:16:11
Can you reword this comment a little? It confused
|
+// by itself and also has to keep some freed memory in a quarantine. |
+// As a result, these two tests fail on OOM under AddressSanitizer on Windows. |
+#if !defined(ADDRESS_SANITIZER) || !defined(OS_WIN) |
TEST_F(PagedArrayTest, TestManyAllocationsDestructorFree) { |
for (int i = 0; i < kIterations; ++i) { |
courgette::PagedArray<int> a; |
@@ -28,6 +32,7 @@ TEST_F(PagedArrayTest, TestManyAllocationsManualFree) { |
a.clear(); |
} |
} |
+#endif |
TEST_F(PagedArrayTest, TestAccess) { |
const int kAccessSize = 3 * 1024 * 1024; |