Skip to content

Commit

Permalink
test: add retries to guard against segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 1, 2024
1 parent 271d64c commit f93b67a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/wrappers/rootfind_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testitem "Steady State Problems" tags=[:wrappers] begin
@testitem "Steady State Problems" tags=[:wrappers] retries=3 begin
import NLSolvers, NLsolve, SIAMFANLEquations, MINPACK, PETSc

function f_iip(du, u, p, t)
Expand Down Expand Up @@ -43,7 +43,7 @@
end
end

@testitem "Nonlinear Root Finding Problems" tags=[:wrappers] begin
@testitem "Nonlinear Root Finding Problems" tags=[:wrappers] retries=3 begin
using LinearAlgebra
import NLSolvers, NLsolve, SIAMFANLEquations, MINPACK, PETSc

Expand Down Expand Up @@ -163,7 +163,7 @@ end
end
end

@testitem "PETSc SNES Floating Points" tags=[:wrappers] skip=:(Sys.iswindows()) begin
@testitem "PETSc SNES Floating Points" tags=[:wrappers] retries=3 skip=:(Sys.iswindows()) begin
import PETSc

f(u, p) = u .* u .- 2
Expand Down

0 comments on commit f93b67a

Please sign in to comment.