Skip to content

Commit

Permalink
Keep the tests running on old Julia versions
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jul 31, 2024
1 parent df7b2a0 commit eaf1c3a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/direct.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using Libdl, Test, OpenBLAS_jll, OpenBLAS32_jll, MKL_jll
openblas32_version = pkgversion(OpenBLAS32_jll)
openblas32_version = VersionNumber(openblas32_version.major, openblas32_version.minor, openblas32_version.patch)
if openblas32_version != v"0.3.10"
throw(ArgumentError("Wrong version of OpenBLAS32_jll ($(pkgversion(OpenBLAS32_jll))); this test suite requires an old OpenBLAS32_jll!"))
if isdefined(Base, :pkgversion)
openblas32_version = pkgversion(OpenBLAS32_jll)
openblas32_version = VersionNumber(openblas32_version.major, openblas32_version.minor, openblas32_version.patch)
if openblas32_version != v"0.3.10"
throw(ArgumentError("Wrong version of OpenBLAS32_jll ($(pkgversion(OpenBLAS32_jll))); this test suite requires an old OpenBLAS32_jll!"))
end
end

include("utils.jl")
Expand Down

0 comments on commit eaf1c3a

Please sign in to comment.