diff options
author | Joel Sherrill <joel@rtems.org> | 2017-12-05 08:03:44 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-12-05 08:03:44 -0600 |
commit | b516a581a3517ae5a0687f1b758e0d84a934afc3 (patch) | |
tree | c89ca6ac8f620e68396b4ae196a7b94b670fab91 | |
parent | 149144fef9a1ca31e8cbbcf517d8149d8a902a91 (diff) |
tester/covoar/covoar.cc: Exit using exit() rather than just throwing.
Closes #3191.
-rw-r--r-- | tester/covoar/covoar.cc | 8 |
1 files 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. |