From fdffb35ba99c8b246ea52716539d7694b67048f7 Mon Sep 17 00:00:00 2001 From: Eric Voskuil Date: Sun, 9 Aug 2026 03:25:19 -0400 Subject: [PATCH] Patch new mmap tests. --- test/memory/mmap.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/memory/mmap.cpp b/test/memory/mmap.cpp index d3e705e29..d2063f2fb 100644 --- a/test/memory/mmap.cpp +++ b/test/memory/mmap.cpp @@ -362,10 +362,14 @@ BOOST_AUTO_TEST_CASE(mmap__allocate__no_minimum_expansion__expected_capacity) // Growth admission (headroom). // ---------------------------------------------------------------------------- // An unsatisfiable headroom refuses every growth ask, which is the recoverable -// resource condition (space set, store intact) and never a store fault. +// resource condition (space set, store intact) and never a store fault. Staged +// load commits (stage_), so an unsatisfiable headroom refuses the load itself +// and these cases cannot isolate growth there. constexpr uint64_t unsatisfiable_headroom = 0x0001000000000000_u64; +#if !defined(MANAGE_STAGING) + BOOST_AUTO_TEST_CASE(mmap__allocate__unsatisfiable_headroom__eof) { constexpr auto minimum = 42_size; @@ -490,6 +494,8 @@ BOOST_AUTO_TEST_CASE(mmap__reserve__unsatisfiable_headroom__false_no_fault) BOOST_REQUIRE(!instance.close()); } +#endif // !MANAGE_STAGING + BOOST_AUTO_TEST_CASE(mmap__allocate__zero_headroom__growth_admitted) { constexpr auto minimum = 42_size;