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
@@ -50,7 +50,7 @@ function run_test(filename::ASCIIString, test_function=nothing)
catch error
warn("Unable to include file $filename for testing.")
err = Base.showerror(Base.STDOUT, error)
push!(test_results, TestResult(filename, "Unable to include file: $err"))
push!(test_results, TestResult(filename, "Unable to include file: $error"))
return
end
if isa(test_function, Void)
+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