Skip to content

Commit eaf1c3a

Browse files
committed
Keep the tests running on old Julia versions
1 parent df7b2a0 commit eaf1c3a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/direct.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Libdl, Test, OpenBLAS_jll, OpenBLAS32_jll, MKL_jll
2-
openblas32_version = pkgversion(OpenBLAS32_jll)
3-
openblas32_version = VersionNumber(openblas32_version.major, openblas32_version.minor, openblas32_version.patch)
4-
if openblas32_version != v"0.3.10"
5-
throw(ArgumentError("Wrong version of OpenBLAS32_jll ($(pkgversion(OpenBLAS32_jll))); this test suite requires an old OpenBLAS32_jll!"))
2+
if isdefined(Base, :pkgversion)
3+
openblas32_version = pkgversion(OpenBLAS32_jll)
4+
openblas32_version = VersionNumber(openblas32_version.major, openblas32_version.minor, openblas32_version.patch)
5+
if openblas32_version != v"0.3.10"
6+
throw(ArgumentError("Wrong version of OpenBLAS32_jll ($(pkgversion(OpenBLAS32_jll))); this test suite requires an old OpenBLAS32_jll!"))
7+
end
68
end
79

810
include("utils.jl")

0 commit comments

Comments
 (0)