Просмотр исходного кода

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.
Peter Palfrader 16 лет назад
Родитель
Сommit
2f760c5461
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/test/test.c

+ 1 - 1
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