From 046eb409432b19387e537dbb5e835ce541e5fca7 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sun, 1 Nov 2015 18:54:59 +0200 Subject: [PATCH] little bug in result printing --- src/test.jl | 2 +- test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test.jl b/src/test.jl index 206644a..2aeee80 100644 --- a/src/test.jl +++ b/src/test.jl @@ -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) diff --git a/test/runtests.jl b/test/runtests.jl index 7d7d09e..ace3b1d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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