Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 13, 2024
1 parent 466b7e1 commit 3a9acaa
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,9 @@ end
@testset "Xpress tests" begin
prob = Xpress.XpressProblem()
@test Xpress.getcontrol(prob, "HEURTHREADS") == 0
vXpress_major = Int(Xpress.get_version().major)
file_extension = ifelse(vXpress_major <= 38, ".mps", "")
msg = "Xpress internal error:\n\n85 Error: File not found: $(file_extension).\n"
r = Xpress.Lib.XPRSreadprob(prob, "", "")
if Xpress.get_version() >= v"41.0.0"
@test_throws(
Xpress.XpressError(85, msg),
Xpress.Lib.XPRSreadprob(prob, "", ""),
)
else
@test_throws(
Xpress.XpressError(32, msg),
Xpress.Lib.XPRSreadprob(prob, "", ""),
)
msg = "Xpress internal error:\n\n85 Error: File not found: .\n"
@test_throws Xpress.XpressError(85, msg) Xpress._check(prob, r)
end
end

0 comments on commit 3a9acaa

Please sign in to comment.