xo-alloc2: utest: cleanup stray error messages
This commit is contained in:
parent
7e8f49d256
commit
29d8b45ab2
4 changed files with 11 additions and 8 deletions
|
|
@ -22,7 +22,7 @@ namespace xo {
|
|||
IAllocIterator_DArenaIterator::compare(const DArenaIterator & ix,
|
||||
const obj<AAllocIterator> & other_arg) noexcept
|
||||
{
|
||||
scope log(XO_DEBUG(true),
|
||||
scope log(XO_DEBUG(false),
|
||||
xtag("&ix", &ix),
|
||||
xtag("ix.arena", ix.arena_), xtag("ix.pos", ix.pos_));
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ namespace xo {
|
|||
|
||||
TEST_CASE("collector-x1-alloc", "[alloc2][gc]")
|
||||
{
|
||||
scope log(XO_DEBUG(true), "DX1Collector alloc test");
|
||||
scope log(XO_DEBUG(false), "DX1Collector alloc test");
|
||||
|
||||
ArenaConfig arena_cfg = { .name_ = "_test_unused",
|
||||
.size_ = 4*1024*1024,
|
||||
|
|
@ -185,16 +185,18 @@ namespace xo {
|
|||
REQUIRE(x1alloc.data());
|
||||
|
||||
rng::Seed<rng::xoshiro256ss> seed;
|
||||
std::cerr << "ratio: seed=" << seed << std::endl;
|
||||
log && log(xtag("seed", seed));
|
||||
|
||||
auto rng = rng::xoshiro256ss(seed);
|
||||
|
||||
utest::AllocUtil::random_allocs(25, true, &rng, x1alloc);
|
||||
bool catch_flag = false;
|
||||
REQUIRE(utest::AllocUtil::random_allocs(25, catch_flag, &rng, x1alloc));
|
||||
}
|
||||
|
||||
TEST_CASE("collector-x1-alloc2", "[alloc2][gc]")
|
||||
{
|
||||
scope log(XO_DEBUG(true), "DX1Collector alloc test2");
|
||||
scope log(XO_DEBUG(false),
|
||||
"DX1Collector alloc test2");
|
||||
|
||||
ArenaConfig arena_cfg = { .name_ = "_test_unused",
|
||||
.size_ = 4*1024*1024,
|
||||
|
|
@ -233,7 +235,7 @@ namespace xo {
|
|||
|
||||
auto rng = rng::xoshiro256ss(seed);
|
||||
|
||||
utest::AllocUtil::random_allocs(25, true, &rng, x1alloc);
|
||||
REQUIRE(utest::AllocUtil::random_allocs(25, false, &rng, x1alloc));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ namespace xo {
|
|||
|
||||
TEST_CASE("IAllocIterator-singlearena", "[alloc2]")
|
||||
{
|
||||
scope log(XO_DEBUG(true));
|
||||
scope log(XO_DEBUG(false));
|
||||
|
||||
ArenaConfig cfg { .name_ = "testarena",
|
||||
.size_ = 64*1024,
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ namespace utest {
|
|||
bool ok_flag = true;
|
||||
|
||||
std::byte * mem = mm.alloc(z);
|
||||
|
||||
log && log(xtag("i_alloc", i_alloc),
|
||||
xtag("si", si),
|
||||
xtag("zi", zi),
|
||||
|
|
@ -186,7 +187,7 @@ namespace utest {
|
|||
*/
|
||||
auto alloc_map = allocs_by_lo_map;
|
||||
|
||||
if (log || true) {
|
||||
if (log) {
|
||||
log(xtag("allocs_by_lo_map.size", allocs_by_lo_map.size()));
|
||||
|
||||
for (auto & kv : allocs_by_lo_map) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue