From a13886fb540034198efba519eb829381187521dc Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 26 Oct 2017 09:22:41 +0200 Subject: Temporary ignore test depending on sysctl setting vm.legacy_va_layout setting. --- vespalib/src/tests/alloc/alloc_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vespalib/src/tests/alloc') 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(); -- cgit v1.2.3