Skip to content

Commit 75c7dda

Browse files
committed
fix error for xpress v8.13
1 parent 32412e6 commit 75c7dda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ end
2020

2121
@test Xpress.getcontrol(prob, "HEURTHREADS") == 0
2222

23-
msg = "Unable to call `Xpress.readprob`:\n\n85 Error: File not found: .mps.\n"
23+
vXpress_major = Int(Xpress.getversion().major)
24+
file_extension = ifelse(vXpress_major <= 38, ".mps","")
25+
msg = "Unable to call `Xpress.readprob`:\n\n85 Error: File not found: $(file_extension).\n"
2426
@test_throws Xpress.XpressError(32, msg) Xpress.readprob(prob,"","")
2527
end

0 commit comments

Comments
 (0)