From dd6a10dfe62992dd426dc22564412ad30269c210 Mon Sep 17 00:00:00 2001 From: Jiri Gaisler Date: Fri, 25 Jan 2019 16:39:18 +0100 Subject: covoar: enable -f switch to select other coverage formats --- tester/covoar/covoar.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc index 36c24c3..cbb0e4f 100644 --- a/tester/covoar/covoar.cc +++ b/tester/covoar/covoar.cc @@ -163,7 +163,7 @@ int covoar( char gcdaFileName[FILE_NAME_LENGTH]; char gcovBashCommand[256]; std::string target; - const char* format = "html"; + const char* format = "QEMU"; FILE* gcnosFile = NULL; Gcov::GcovData* gcovFile; const char* singleExecutable = NULL; @@ -359,6 +359,7 @@ int covoar( AllExplanations->load( explanations ); // Create coverage map reader. + coverageFormat = Coverage::CoverageFormatToEnum(format); coverageReader = Coverage::CreateCoverageReader(coverageFormat); if (!coverageReader) throw rld::error( "Unable to create coverage file reader", "covoar" ); -- cgit v1.2.3