[PATCH 2/2] tests: return 0 upon success

Gbp-Pq: Name 0002-tests-return-0-upon-success.patch
This commit is contained in:
Andreas Cadhalpun 2015-04-26 20:05:40 +02:00 committed by Lu zhiping
parent 308e3467e3
commit b04890bc42
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ int unittest_summary(){
fprintf(stderr, "UNIT TESTs succeeded:\t %s%i/%i\033[0m\n",
units_failed>0 ? "\033[1;31m" : "\033[1;32m",
units_success, units_success + units_failed);
return units_failed==0;
return units_failed!=0;
}