test(shmem): add tests for allocation in a full segment

- For both allocation algorithms (rbtree_best_fit, simple_seq_fit)
- A message larger than the segment throws MessageBadAlloc
- A full segment throws, and allocates again after a release
- bad-alloc-max-attempts and bad-alloc-attempt-interval
- shm-throw-bad-alloc=false waits until memory is free;
  Interrupt() ends the wait with MessageBadAlloc

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-03 14:58:16 +00:00
committed by Dennis Klein
parent 4ae5a6d2f5
commit 89cbc968d8
2 changed files with 151 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ add_testsuite(Transport
transport/_transfer_timeout.cxx
transport/_options.cxx
transport/_shmem.cxx
transport/_shm_allocation.cxx
LINKS FairMQ
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}