Skip to content

Commit

Permalink
test: try fixing more mac tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 1, 2024
1 parent 8264489 commit 43c56cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions test/23_test_problems_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ end
broken_tests = Dict(alg => Int[] for alg in alg_ops)
broken_tests[alg_ops[1]] = [1, 2, 3, 5, 21]
if Sys.isapple()
broken_tests[alg_ops[2]] = [1, 2, 3, 5, 6, 21]
if VERSION v"1.11-"
broken_tests[alg_ops[2]] = [1, 2, 3, 5, 6, 11, 21]
else
broken_tests[alg_ops[2]] = [1, 2, 3, 5, 6, 21]
end
else
broken_tests[alg_ops[2]] = [1, 2, 3, 5, 6, 11, 21]
end
Expand All @@ -143,11 +147,16 @@ end
if Sys.isapple()
broken_tests[alg_ops[1]] = [1, 5, 11]
broken_tests[alg_ops[3]] = [1, 5, 6, 9, 11]
if VERSION v"1.11-"
broken_tests[alg_ops[5]] = [1, 4, 5, 11]
else
broken_tests[alg_ops[5]] = [1, 5, 11]
end
else
broken_tests[alg_ops[1]] = [1, 5, 11, 15]
broken_tests[alg_ops[3]] = [1, 5, 9, 11, 16]
broken_tests[alg_ops[5]] = [1, 5, 11]
end
broken_tests[alg_ops[5]] = [1, 5, 11]

test_on_library(problems, dicts, alg_ops, broken_tests, Sys.isapple() ? 1e-3 : 1e-4)
end
Expand Down
2 changes: 1 addition & 1 deletion test/wrappers/least_squares_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end

push!(solvers, FastLevenbergMarquardtJL(linsolve; autodiff))
end
if Sys.isapple()
if !Sys.isapple()
for method in (:auto, :lm, :lmdif)
push!(solvers, CMINPACK(; method))
end
Expand Down

0 comments on commit 43c56cc

Please sign in to comment.