summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-06-29 15:20:18 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-06-29 15:20:18 +0200
commitc12ffc5c474ba236ba3111319f7a3ae7f8462332 (patch)
tree9a609f333b1d4dc815a8b928b635afd1f83e94e6 /vespalib
parentc233afaff7b238b9f19af77b58151b30ad71d4c2 (diff)
Add comment about why two tests are disabled when address
sanitizer is enabled.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/alloc/alloc_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/vespalib/src/tests/alloc/alloc_test.cpp b/vespalib/src/tests/alloc/alloc_test.cpp
index 8a1a842ac28..4dbeba62ee1 100644
--- a/vespalib/src/tests/alloc/alloc_test.cpp
+++ b/vespalib/src/tests/alloc/alloc_test.cpp
@@ -200,6 +200,12 @@ TEST("auto alloced mmap alloc can not be extended if no room") {
TEST_DO(verifyNoExtensionWhenNoRoom(buf, reserved, SZ));
}
+/*
+ * The two following tests are disabled when address sanitizer is
+ * enabled since extra instrumentation code might trigger extra mmap
+ * or munmap calls, breaking some of the assumptions in the disabled
+ * tests.
+ */
#ifndef __SANITIZE_ADDRESS__
TEST("mmap alloc can be extended if room") {
Alloc dummy = Alloc::allocMMap(100);