xo-alloc2: + utest harness for catch2
accept additional commandline arguments
This commit is contained in:
parent
6583fff677
commit
550b33323c
17 changed files with 262 additions and 13 deletions
24
xo-alloc2/utest/TestUtil.cpp
Normal file
24
xo-alloc2/utest/TestUtil.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/** @file TestUtil.cpp
|
||||
*
|
||||
* @author Roland Conybeare, May 2026
|
||||
**/
|
||||
|
||||
#include "TestUtil.hpp"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
namespace xo {
|
||||
UtestConfig *
|
||||
UtestConfig::instance() {
|
||||
static UtestConfig s_instance;
|
||||
|
||||
return &s_instance;
|
||||
};
|
||||
|
||||
scope
|
||||
Utest::ut_scope() {
|
||||
return scope(XO_DEBUG(UtestConfig::instance()->debug_flag()),
|
||||
xtag("name", Catch::getResultCapture().getCurrentTestName()));
|
||||
}
|
||||
}
|
||||
|
||||
/* end TestUtil.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue