diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-02-07 15:02:02 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-02-07 15:02:02 +0100 |
commit | 9f6a7f7acc94afe82765b9628e0e1bc2d8596bfb (patch) | |
tree | b7f0345076a78972882b834a56456110b48559c5 /vespalib | |
parent | fa6fa7e7656ff3f066b4d92822a5628bb7957204 (diff) |
Remove unit tests depending on legacy linux kernel behavior
(They work with kernel 6.6.14 but fail with kernel 6.7.3).
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/alloc/alloc_test.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vespalib/src/tests/alloc/alloc_test.cpp b/vespalib/src/tests/alloc/alloc_test.cpp index b50c6d782e2..1436724267d 100644 --- a/vespalib/src/tests/alloc/alloc_test.cpp +++ b/vespalib/src/tests/alloc/alloc_test.cpp @@ -198,23 +198,6 @@ void verifyNoExtensionWhenNoRoom(Alloc & buf, Alloc & reserved, size_t sz) { } #ifdef __linux__ -TEST("auto alloced mmap alloc can be extended if room") { - static constexpr size_t SZ = MemoryAllocator::HUGEPAGE_SIZE*2; - Alloc reserved = Alloc::alloc(SZ); - Alloc buf = Alloc::alloc(SZ); - - TEST_DO(ensureRoomForExtension(buf, reserved)); - TEST_DO(verifyExtension(buf, SZ, (SZ/2)*3)); -} - -TEST("auto alloced mmap alloc can not be extended if no room") { - static constexpr size_t SZ = MemoryAllocator::HUGEPAGE_SIZE*2; - Alloc reserved = Alloc::alloc(SZ); - Alloc buf = Alloc::alloc(SZ); - - TEST_DO(verifyNoExtensionWhenNoRoom(buf, reserved, SZ)); -} - /* * The two following tests are disabled when any sanitizer is * enabled since extra instrumentation code might trigger extra mmap |