From 98951d2ad7058c348d2935c35f7df83919e7e31e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 18:49:41 +0100 Subject: test/critter: d'oh! --- test/critter.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/critter.cpp') diff --git a/test/critter.cpp b/test/critter.cpp index 2aca3da3..91ba094e 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -132,12 +132,13 @@ bool run(StringView subtest_name, critter& npc, const function_view& Debug{} << "===>" << i << "iters" << colon(',') << time << Debug::newline; } if (i == 0) [[unlikely]] // todo! check for very small dt before dying - { auto dbg = Error{standard_error(), Debug::Flag::NoSpace}; - dbg << "!!! fatal: took zero iterations!"; - dbg << " dt=" << dt << "accel=" << npc.speed; + { + { auto dbg = Error{standard_error(), Debug::Flag::NoSpace}; + dbg << "!!! fatal: took zero iterations!"; + dbg << " dt=" << dt << "accel=" << npc.speed; + } + fm_assert(false); } - std::fflush(stdout);; - fm_assert(false); break; } if (time > grace.max_time) [[unlikely]] -- cgit v1.2.3