summaryrefslogtreecommitdiffstats
path: root/searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp')
-rw-r--r--searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp b/searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp
index 9b2510ac3df..4abbe7d2613 100644
--- a/searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp
+++ b/searchsummary/src/tests/extractkeywords/extractkeywordstest.cpp
@@ -18,7 +18,7 @@ ExtractKeywordsTest::Main()
bool failed = false;
if (_argc == 1)
- Usage(_argv[0]);
+ return Usage(_argv[0]);
// default initialize to not run any tests.
for (int n = 0; n < NUMTESTS; n++)
@@ -271,7 +271,7 @@ ExtractKeywordsTest::RunTest(int testno, bool verify)
return result;
}
-void
+int
ExtractKeywordsTest::Usage(char *progname)
{
printf("%s {testnospec}+\n\
@@ -279,7 +279,7 @@ ExtractKeywordsTest::Usage(char *progname)
num: single test\n\
num-num: inclusive range (open range permitted)\n",progname);
printf("There are tests from %d to %d\n\n", 0, NUMTESTS-1);
- exit(-1);
+ return EXIT_FAILURE;
}
int