summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-09-11 14:18:18 +0200
committerGitHub <noreply@github.com>2018-09-11 14:18:18 +0200
commitebd5b60c046d428cbe585baba16a832b36e6dfa7 (patch)
tree4547933e248810af0ebbbf6f7ec7595d79a042c9 /vespalib
parent5f2187d413304eaaafed3f655b5e7a052e249a47 (diff)
parent4216df5bedb132ff0c2cebdcea571f0a98c69a89 (diff)
Merge pull request #6896 from vespa-engine/toregge/handle-single-mmap-hole-in-mmap-extension-test
The first memory mapped region can be a long distance from the second one
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/alloc/alloc_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/tests/alloc/alloc_test.cpp b/vespalib/src/tests/alloc/alloc_test.cpp
index 0e52d06a2d5..dd4adfc2fa1 100644
--- a/vespalib/src/tests/alloc/alloc_test.cpp
+++ b/vespalib/src/tests/alloc/alloc_test.cpp
@@ -179,6 +179,7 @@ TEST("auto alloced mmap alloc can not be extended if no room") {
}
TEST("mmap alloc can be extended if room") {
+ Alloc dummy = Alloc::allocMMap(100);
Alloc reserved = Alloc::allocMMap(100);
Alloc buf = Alloc::allocMMap(100);
@@ -187,6 +188,7 @@ TEST("mmap alloc can be extended if room") {
}
TEST("mmap alloc can not be extended if no room") {
+ Alloc dummy = Alloc::allocMMap(100);
Alloc reserved = Alloc::allocMMap(100);
Alloc buf = Alloc::allocMMap(100);