ICU-543 exit with a non-zero error code if tests were not successful.

X-SVN-Rev: 2187
This commit is contained in:
Yves Arrouye 2000-08-11 04:29:07 +00:00
parent 987c8add5b
commit 5539bdeb9d
2 changed files with 5 additions and 3 deletions

View File

@ -647,7 +647,7 @@ void TestGetAll()
log_err("Error in countAvailable(), it returned %d\n", count);
}
else{
log_verbose("Pass: countAvailable() successful, it returned %d\n", count);
log_verbose("PASS: countAvailable() successful, it returned %d\n", count);
}
for(i=0;i<count;i++)
log_verbose("%s\n", ucol_getAvailable(i));

View File

@ -27,6 +27,7 @@
static char* _testDirectory=NULL;
int main ( int argc, const char **argv )
{
int nerrors;
TestNode *root;
/* initial check for the default converter */
@ -73,11 +74,12 @@ int main ( int argc, const char **argv )
root = NULL;
addAllTests(&root);
processArgs(root, argc, argv);
nerrors = processArgs(root, argc, argv);
cleanUpTestTree(root);
cleanUpDataTable();
ctst_freeAll();
return 0;
return nerrors ? 1 : 0;
}
void