]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix testsuite call. tor-0.2.2.4-alpha
authorPeter Palfrader <peter@palfrader.org>
Sat, 10 Oct 2009 22:50:57 +0000 (00:50 +0200)
committerNick Mathewson <nickm@torproject.org>
Sat, 10 Oct 2009 22:58:54 +0000 (18:58 -0400)
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

index 441031a4d192714f4674a828b771fc00aeaf9876..839d9469ebd393b78ab13f001091cb5c50023487 100644 (file)
@@ -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