Skip to content

Commit 271d64c

Browse files
committed
test: div by zero
1 parent 43c56cc commit 271d64c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/NonlinearSolveFirstOrder/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const RETESTITEMS_NWORKERS = parse(
1212
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1313
get(
1414
ENV, "RETESTITEMS_NWORKER_THREADS",
15-
string(max(Hwloc.num_virtual_cores() ÷ RETESTITEMS_NWORKERS, 1))
15+
string(max(Hwloc.num_virtual_cores() ÷ max(RETESTITEMS_NWORKERS, 1), 1))
1616
)
1717
)
1818

lib/NonlinearSolveQuasiNewton/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const RETESTITEMS_NWORKERS = parse(
1212
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1313
get(
1414
ENV, "RETESTITEMS_NWORKER_THREADS",
15-
string(max(Hwloc.num_virtual_cores() ÷ RETESTITEMS_NWORKERS, 1))
15+
string(max(Hwloc.num_virtual_cores() ÷ max(RETESTITEMS_NWORKERS, 1), 1))
1616
)
1717
)
1818

lib/NonlinearSolveSpectralMethods/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const RETESTITEMS_NWORKERS = parse(
1212
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1313
get(
1414
ENV, "RETESTITEMS_NWORKER_THREADS",
15-
string(max(Hwloc.num_virtual_cores() ÷ RETESTITEMS_NWORKERS, 1))
15+
string(max(Hwloc.num_virtual_cores() ÷ max(RETESTITEMS_NWORKERS, 1), 1))
1616
)
1717
)
1818

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const RETESTITEMS_NWORKERS = parse(
1717
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1818
get(
1919
ENV, "RETESTITEMS_NWORKER_THREADS",
20-
string(max(Hwloc.num_virtual_cores() ÷ RETESTITEMS_NWORKERS, 1))
20+
string(max(Hwloc.num_virtual_cores() ÷ max(RETESTITEMS_NWORKERS, 1), 1))
2121
)
2222
)
2323

0 commit comments

Comments
 (0)