aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreddie Liardet <frederick.liardet@arm.com>2021-07-23 15:43:18 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-07-23 16:00:11 +0000
commit6575ef8fa14324e718d1c111859a24725835a648 (patch)
tree5bf1d681fa7c01e703aa17dc83acfb0493615f0e
parentf67034e7f52596eece094b37fb386c946e1b87ee (diff)
downloadComputeLibrary-6575ef8fa14324e718d1c111859a24725835a648.tar.gz
Fix formatting issue with blank profiler header
Signed-off-by: Freddie Liardet <frederick.liardet@arm.com> Change-Id: I24fcb2531d45db09843a7021e9af55b9c3a0e743 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5986 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Georgios Pinitas <georgios.pinitas@arm.com>
-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;
}