From 2f760c54615f9044cad93392c030ef24119026e2 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 11 Oct 2009 00:50:57 +0200 Subject: 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. --- src/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf