Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/memory/mmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading