little bug in result printing

This commit is contained in:
Jukka Aho
2015-11-01 18:54:59 +02:00
parent f4f6179008
commit 046eb40943
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ function run_tests()
passed, failed, errors, critical = print_test_statistics()
# at the very end throw error if something is failed
if failed + errors critical != 0
if failed + errors + critical > 0
error("Some tests has failed. Fix them. Now.")
exit(1)
else