diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-06-29 15:20:18 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-06-29 15:20:18 +0200 |
commit | c12ffc5c474ba236ba3111319f7a3ae7f8462332 (patch) | |
tree | 9a609f333b1d4dc815a8b928b635afd1f83e94e6 /vespalib | |
parent | c233afaff7b238b9f19af77b58151b30ad71d4c2 (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.cpp | 6 |
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); |