summaryrefslogtreecommitdiff
path: root/src/unittest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-09 17:31:21 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-09 17:33:50 +0100
commit0b0cb4afa08210b572a9be6cadcb6397935b99d1 (patch)
treead8c451cd780cb1c0cc0e5db5b8cc40c2b92489f /src/unittest.cc
parent55ab1f564286c6f3e986bf68ebb271132a749c6f (diff)
Make sure to flush compilation status lines to the console.
Diffstat (limited to 'src/unittest.cc')
-rw-r--r--src/unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unittest.cc b/src/unittest.cc
index f18de47..942be3e 100644
--- a/src/unittest.cc
+++ b/src/unittest.cc
@@ -12,7 +12,7 @@ int runUnitTests(std::set<std::shared_ptr<Task>>& tasks,
const Settings& settings)
{
bool ok{true};
- std::cout << "Running unit-tests:\n";
+ std::cout << "Running unit-tests:" << std::endl;
// Run unit-tests
for(const auto& task : tasks)
{
@@ -28,11 +28,11 @@ int runUnitTests(std::set<std::shared_ptr<Task>>& tasks,
ok &= ret == 0;
if(ret == 0)
{
- std::cout << " OK\n";
+ std::cout << " OK" << std::endl;
}
else
{
- std::cout << " FAILED\n";
+ std::cout << " FAILED" << std::endl;
}
}
}