xo-gc stack: coverage improvement + related tidying
This commit is contained in:
parent
9b84ef8a7f
commit
42e09dd21e
8 changed files with 130 additions and 47 deletions
29
utest/IAllocator_Any.test.cpp
Normal file
29
utest/IAllocator_Any.test.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/** @file IAllocator_Any.test.cpp
|
||||
*
|
||||
* @author Roland Conybeare, May 2026
|
||||
**/
|
||||
|
||||
#include <xo/alloc2/Allocator.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::AAllocator;
|
||||
|
||||
namespace ut {
|
||||
|
||||
TEST_CASE("IAllocator_Any", "[alloc2][death]")
|
||||
{
|
||||
// null allocator
|
||||
obj<AAllocator> alloc_any;
|
||||
|
||||
// NOTE: tried using a fork() strategy to verify termination,
|
||||
// but child process doesn't get measured by gcov
|
||||
}
|
||||
|
||||
} /*namespace ut*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end IAllocator_Any.test.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue