summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-10 02:25:50 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-10 02:25:50 +0100
commit223fd23e6431ab4e0b2e4b918d50d1b8cf192f36 (patch)
tree23f2f5fd60ff2b737b02e8035c9f72ad0c4a77ef /test
parentd83927d06f3dd848c995a26fde582b78c704f80c (diff)
fix formatting on abnormal termination
Diffstat (limited to 'test')
-rw-r--r--test/app.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/app.cpp b/test/app.cpp
index ffaf8201..06049609 100644
--- a/test/app.cpp
+++ b/test/app.cpp
@@ -99,10 +99,11 @@ int test_app::exec()
{
name = name.exceptPrefix(name_prefix);
std::fwrite(name.data(), name.size(), 1, s);
+ if constexpr(!sep.isEmpty())
+ std::fwrite(sep.data(), sep.size(), 1, s);
+ auto num_tabs = max_tabs - get_tabs(name);
std::fflush(stdout);
auto ms = get_time(fun);
- std::fwrite(sep.data(), sep.size(), 1, s);
- auto num_tabs = max_tabs - get_tabs(name);
fm_assert(num_tabs <= tab_limit);
for (auto i = 0uz; i < num_tabs; i++)
std::fputc('\t', s);