From 4e2f72cc60fb66db33ea3c8b61b5493478e8c94f Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 24 Oct 2024 10:40:36 +1300 Subject: [PATCH] Fix test on Windows (#29) --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 53e0f80..979451d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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