Skip to content

Commit 7a891e9

Browse files
committed
Test for versioninfo with ENV variable
1 parent 84fd21b commit 7a891e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ end
2323
r"OPENBLAS_NUM_THREADS = [0-9]+",
2424
r"GOTO_NUM_THREADS = [0-9]+",
2525
r"OMP_NUM_THREADS = [0-9]+", r"\[none\]"])
26+
27+
withenv("MKL_NUM_THREADS" => 1) do
28+
vinfo = sprint(LinearAlgebra.versioninfo)
29+
vars = strip(split(vinfo, "Relevant environment variables:")[end])
30+
@test occursin("MKL_NUM_THREADS = 1", vars)
31+
end
2632
end

0 commit comments

Comments
 (0)