Skip to content

Commit

Permalink
test: remove segfault warning
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 31, 2024
1 parent 4354511 commit eb67c22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/NonlinearSolveQuasiNewton/test/core_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ end

solver = LimitedMemoryBroyden(; linesearch)
sol = solve_iip(quadratic_f!, u0; solver)
@test SciMLBase.successful_retcode(sol)
@test SciMLBase.successful_retcode(sol) broken=broken
err = maximum(abs, quadratic_f(sol.u, 2.0))
@test err<1e-9 broken=broken

Expand Down
6 changes: 1 addition & 5 deletions test/23_test_problems_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ end
alg_ops = (SimpleHalley(; autodiff = AutoForwardDiff()),)

broken_tests = Dict(alg => Int[] for alg in alg_ops)
if Sys.isapple()
broken_tests[alg_ops[1]] = [1, 5, 11, 15, 16, 18]
else
broken_tests[alg_ops[1]] = [1, 5, 15, 16, 18]
end
broken_tests[alg_ops[1]] = [1, 5, 15, 16, 18]

test_on_library(problems, dicts, alg_ops, broken_tests)
end
Expand Down
1 change: 0 additions & 1 deletion test/wrappers/rootfind_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
end
end

# Can lead to segfaults
@testitem "Nonlinear Root Finding Problems" tags=[:wrappers] begin
using LinearAlgebra
import NLSolvers, NLsolve, SIAMFANLEquations, MINPACK, PETSc
Expand Down

0 comments on commit eb67c22

Please sign in to comment.