[rtems-tools commit] tester/covoar/covoar.cc: Exit using exit() rather than just throwing.
Joel Sherrill
joel at rtems.org
Tue Dec 5 14:04:57 UTC 2017
Module: rtems-tools
Branch: master
Commit: b516a581a3517ae5a0687f1b758e0d84a934afc3
Changeset: http://git.rtems.org/rtems-tools/commit/?id=b516a581a3517ae5a0687f1b758e0d84a934afc3
Author: Joel Sherrill <joel at rtems.org>
Date: Tue Dec 5 08:03:44 2017 -0600
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.
More information about the vc
mailing list