[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [tor/master] Fix testsuite call.



Author: Peter Palfrader <peter@xxxxxxxxxxxxx>
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