From 172c58d17cef75fd8b6850609de4f074c8bcdd98 Mon Sep 17 00:00:00 2001 From: steniu01 Date: Thu, 31 Aug 2017 13:49:08 +0100 Subject: COMPMID-345 Fix the failure counter wrongly logging issue Change-Id: Ic917b0361e602fadb8dbff69c6bec5582d6b261d Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85956 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- tests/framework/printers/JSONPrinter.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/framework/printers/JSONPrinter.cpp') diff --git a/tests/framework/printers/JSONPrinter.cpp b/tests/framework/printers/JSONPrinter.cpp index 5b30389eca..bf8fce7844 100644 --- a/tests/framework/printers/JSONPrinter.cpp +++ b/tests/framework/printers/JSONPrinter.cpp @@ -113,6 +113,16 @@ void JSONPrinter::print_error(const std::exception &error) } } +void JSONPrinter::print_info(const std::string &info) +{ + std::istringstream iss(info); + for(std::string line; !std::getline(iss, line).fail();) + { + print_separator(_first_error); + *_stream << R"(")" << line << R"(")"; + } +} + void JSONPrinter::print_measurements(const Profiler::MeasurementsMap &measurements) { print_separator(_first_test_entry); -- cgit v1.2.1