From 6575ef8fa14324e718d1c111859a24725835a648 Mon Sep 17 00:00:00 2001 From: Freddie Liardet Date: Fri, 23 Jul 2021 15:43:18 +0100 Subject: Fix formatting issue with blank profiler header Signed-off-by: Freddie Liardet Change-Id: I24fcb2531d45db09843a7021e9af55b9c3a0e743 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5986 Reviewed-by: Georgios Pinitas Tested-by: Georgios Pinitas --- tests/framework/printers/JSONPrinter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.1