summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-12-05 08:03:44 -0600
committerJoel Sherrill <joel@rtems.org>2017-12-05 08:03:44 -0600
commitb516a581a3517ae5a0687f1b758e0d84a934afc3 (patch)
treec89ca6ac8f620e68396b4ae196a7b94b670fab91
parenttester/covoar/covoar.cc: Clean up formatting (tabs, braces, indentation, etc) (diff)
downloadrtems-tools-b516a581a3517ae5a0687f1b758e0d84a934afc3.tar.bz2
tester/covoar/covoar.cc: Exit using exit() rather than just throwing.
Closes #3191.
-rw-r--r--tester/covoar/covoar.cc8
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.