ICU-543 exit with a non-zero error code if tests were not successful.
X-SVN-Rev: 2187
This commit is contained in:
parent
987c8add5b
commit
5539bdeb9d
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user