aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r--src/tests/tests.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index 8f8aeec82..d7917bcc6 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -1032,7 +1032,10 @@ std::vector<Test::Result> Text_Based_Test::run()
if(result.tests_failed())
{
- result.test_note("Test #" + std::to_string(test_cnt) + " failed");
+ if(header.empty())
+ result.test_note("Test #" + std::to_string(test_cnt) + " failed");
+ else
+ result.test_note("Test #" + std::to_string(test_cnt) + " " + header + " failed");
}
results.push_back(result);
}