aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/framework/printers/JSONPrinter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/framework/printers/JSONPrinter.cpp b/tests/framework/printers/JSONPrinter.cpp
index cf1a4c38cb..84b2d23114 100644
--- a/tests/framework/printers/JSONPrinter.cpp
+++ b/tests/framework/printers/JSONPrinter.cpp
@@ -171,7 +171,10 @@ void JSONPrinter::print_info(const std::string &info)
void JSONPrinter::print_profiler_header(const std::string &header_data)
{
- print_separator(_first_test_entry);
+ if(header_data.size() > 0)
+ {
+ print_separator(_first_test_entry);
+ }
*_stream << header_data;
}