Skip to content

Commit 67133df

Browse files
committed
Improve error reporting a bit
1 parent 2025688 commit 67133df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using Pkg, Artifacts, Base.BinaryPlatforms, Libdl, Test
44
include("utils.jl")
55

66
# Compile `dgemm_test.c` and `sgesv_test.c` against the given BLAS/LAPACK
7-
function run_test((test_name, test_expected_outputs, test_success), libblas_name, libdirs, interface, backing_libs)
7+
function run_test((test_name, test_expected_outputs, expect_success), libblas_name, libdirs, interface, backing_libs)
88
# We need to configure this C build a bit
99
cflags = String[
1010
"-g",
@@ -54,9 +54,9 @@ function run_test((test_name, test_expected_outputs, test_success), libblas_name
5454
cmd = `$(dir)/$(test_name)`
5555
p, output = capture_output(addenv(cmd, env))
5656

57-
expected_return_value = success(p) ^ test_success
57+
expected_return_value = success(p) ^ expect_success
5858
if !expected_return_value
59-
@error("Test failed", env, p.exitcode)
59+
@error("Test failed", env, p.exitcode, p.termsignal, expect_success)
6060
println(output)
6161
end
6262
@test expected_return_value

0 commit comments

Comments
 (0)