diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-10-26 09:22:41 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-10-26 09:22:41 +0200 |
commit | a13886fb540034198efba519eb829381187521dc (patch) | |
tree | a31e04176ae7b28e5b613ef445662128b8d9e59f /vespalib | |
parent | d8d2d40bceaeedbdeae89619589515b138cad21b (diff) |
Temporary ignore test depending on sysctl setting vm.legacy_va_layout setting.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/alloc/alloc_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vespalib/src/tests/alloc/alloc_test.cpp b/vespalib/src/tests/alloc/alloc_test.cpp index 30cc4f7e91c..2d4ebd14dc2 100644 --- a/vespalib/src/tests/alloc/alloc_test.cpp +++ b/vespalib/src/tests/alloc/alloc_test.cpp @@ -127,6 +127,9 @@ TEST("auto alloced heap alloc can not be extended, even if resize will be mmappe EXPECT_EQUAL(100ul, buf.size()); } +// Temporary disable test as it depends on sysctl setting vm.legacy_va_layout = 0 +// Setting it too true change the order address space is used by OS. +#if 0 TEST("auto alloced mmap alloc can be extended if room") { static constexpr size_t SZ = MemoryAllocator::HUGEPAGE_SIZE*2; Alloc reserved = Alloc::alloc(SZ); @@ -203,6 +206,8 @@ TEST("mmap alloc can not be extended if no room") { EXPECT_EQUAL(4096ul, buf.size()); } +#endif + TEST("heap alloc can not be shrinked") { Alloc buf = Alloc::allocHeap(101); void * oldPtr = buf.get(); |