summaryrefslogtreecommitdiffhomepage
path: root/test/critter.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-03 18:49:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-04 06:58:19 +0100
commit98951d2ad7058c348d2935c35f7df83919e7e31e (patch)
tree370fe1a15ff6ade65321dab33f74f752e388b3a9 /test/critter.cpp
parent50ae98cb55b0552f751bdbf159a318135de4d215 (diff)
test/critter: d'oh!
Diffstat (limited to 'test/critter.cpp')
-rw-r--r--test/critter.cpp11
1 files changed, 6 insertions, 5 deletions
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<Ns() const>&
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]]