diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-10-11 00:50:57 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-10 18:58:54 -0400 |
commit | 2f760c54615f9044cad93392c030ef24119026e2 (patch) | |
tree | 95f0ce11c5c7e023db5eed31063328ebec95b0f6 | |
parent | a9e0e2f8197c013e31b656bf94aa5a91c08f2ed1 (diff) | |
download | tor-0.2.2.4-alpha.tar.gz tor-0.2.2.4-alpha.zip |
Fix testsuite call.tor-0.2.2.4-alpha
tinytest_main() returns 0 on success, -1 on errors and 1 on test
failures. So test.c should check on !=0 instead of <0.
-rw-r--r-- | src/test/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |