Skip to content

Commit 4e2f72c

Browse files
authored
Fix test on Windows (#29)
1 parent c74b0c0 commit 4e2f72c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ end
2929
@test Gurobi_jll.gurobi_cl_path isa String
3030
contents = sprint(io -> run(pipeline(`$(gurobi_cl()) -v`, stdout = io)))
3131
if Sys.iswindows()
32-
# Is there an issue flushing `io`? Returns `""`
33-
@test contents == ""
32+
# Is there an issue flushing `io`? Some versions return `""`
33+
@test occursin("Gurobi Optimizer", contents) || isempty(contents)
3434
else
3535
@test occursin("Gurobi Optimizer", contents)
3636
end

0 commit comments

Comments
 (0)