From b516a581a3517ae5a0687f1b758e0d84a934afc3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 5 Dec 2017 08:03:44 -0600 Subject: tester/covoar/covoar.cc: Exit using exit() rather than just throwing. Closes #3191. --- tester/covoar/covoar.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc index 2bfe53d..ef1dc79 100644 --- a/tester/covoar/covoar.cc +++ b/tester/covoar/covoar.cc @@ -161,7 +161,7 @@ int main( case 'd': debug = true; break; default: /* '?' */ usage(); - exit( -1 ); + exit(EXIT_FAILURE); } } try @@ -222,7 +222,7 @@ int main( { std::cout << "error missing option: " + option << std::endl; usage(); - throw; + exit(EXIT_FAILURE); } // If a single executable was specified, process the remaining @@ -307,7 +307,7 @@ int main( fprintf( stderr, "ERROR: No information to analyze\n" ); - exit( -1 ); + exit(EXIT_FAILURE); } if (Verbose) { @@ -372,7 +372,7 @@ int main( coverageReader = Coverage::CreateCoverageReader(coverageFormat); if (!coverageReader) { fprintf( stderr, "ERROR: Unable to create coverage file reader\n" ); - exit(-1); + exit(EXIT_FAILURE); } // Create the objdump processor. -- cgit v1.2.3