Skip to content

Commit

Permalink
Skip nonlinear solver tests on macOS
Browse files Browse the repository at this point in the history
MINPACK.jl is broken on macOS (possibly just on ARM?), so skip the
nonlinear solver tests on macOS.
  • Loading branch information
johnomotani committed Jun 12, 2024
1 parent 9e60f3e commit 63fae8c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions moment_kinetics/test/nonlinear_solver_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,18 @@ function nonlinear_test()
end

function runtests()
@testset "non-linear solvers" begin
println("non-linear solver tests")
linear_test()
nonlinear_test()
if Sys.isapple()
@testset_skip "MINPACK is broken on macOS (https://github.com/sglyon/MINPACK.jl/issues/18)" "non-linear solvers" begin
println("non-linear solver tests")
linear_test()
nonlinear_test()
end
else
@testset "non-linear solvers" begin
println("non-linear solver tests")
linear_test()
nonlinear_test()
end
end
end

Expand Down

0 comments on commit 63fae8c

Please sign in to comment.