From 71767c1e17c121f4ab1fa2a83e34e9f7320a2c40 Mon Sep 17 00:00:00 2001 From: John Omotani Date: Tue, 11 Jun 2024 13:30:39 +0100 Subject: [PATCH] Skip nonlinear solver tests on macOS MINPACK.jl is broken on macOS (possibly just on ARM?), so skip the nonlinear solver tests on macOS. --- moment_kinetics/test/nonlinear_solver_tests.jl | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/moment_kinetics/test/nonlinear_solver_tests.jl b/moment_kinetics/test/nonlinear_solver_tests.jl index 1e63de1bef..5c0b08dfe2 100644 --- a/moment_kinetics/test/nonlinear_solver_tests.jl +++ b/moment_kinetics/test/nonlinear_solver_tests.jl @@ -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