From: Peter Palfrader Date: Sat, 10 Oct 2009 22:50:57 +0000 (+0200) Subject: Fix testsuite call. X-Git-Tag: tor-0.2.2.4-alpha^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f760c54615f9044cad93392c030ef24119026e2;p=thirdparty%2Ftor.git Fix testsuite call. tinytest_main() returns 0 on success, -1 on errors and 1 on test failures. So test.c should check on !=0 instead of <0. --- diff --git a/src/test/test.c b/src/test/test.c index 441031a4d1..839d9469eb 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -1196,7 +1196,7 @@ main(int c, const char **v) atexit(remove_directory); - have_failed = (tinytest_main(c, v, testgroups) < 0); + have_failed = (tinytest_main(c, v, testgroups) != 0); free_pregenerated_keys(); #ifdef USE_DMALLOC