From 2ba10aaff7e30f0825542dd8450e6addfa042fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sun, 5 Apr 2026 10:24:40 +0200 Subject: [PATCH] Fix init value of `count` in `_count_child_pids` --- test/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.jl b/test/utils.jl index ef6cc95..8ec213b 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -14,7 +14,7 @@ function _count_child_pids(pid = getpid()) # because it's spawned by the current process, in that case we subtract # one to always exclude it, otherwise if we're getting the number of # children of another process we start from 0. - count = pid == getpid() : -1 : 0 + count = pid == getpid() ? -1 : 0 for line in lines m = match(r" *(\d+) +(\d+)", line) if !isnothing(m)