Skip to content

Commit

Permalink
Fix test on Windows (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 23, 2024
1 parent c74b0c0 commit 4e2f72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ end
@test Gurobi_jll.gurobi_cl_path isa String
contents = sprint(io -> run(pipeline(`$(gurobi_cl()) -v`, stdout = io)))
if Sys.iswindows()
# Is there an issue flushing `io`? Returns `""`
@test contents == ""
# Is there an issue flushing `io`? Some versions return `""`
@test occursin("Gurobi Optimizer", contents) || isempty(contents)
else
@test occursin("Gurobi Optimizer", contents)
end
Expand Down

0 comments on commit 4e2f72c

Please sign in to comment.