[or-cvs] [tor/master] Fix testsuite call.
Nick Mathewson
nickm at seul.org
Sat Oct 10 22:59:38 UTC 2009
Author: Peter Palfrader <peter at palfrader.org>
Date: Sun, 11 Oct 2009 00:50:57 +0200
Subject: Fix testsuite call.
Commit: 2f760c54615f9044cad93392c030ef24119026e2
tinytest_main() returns 0 on success, -1 on errors and 1 on test
failures. So test.c should check on !=0 instead of <0.
---
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 441031a..839d946 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
--
1.5.6.5
More information about the tor-commits
mailing list