[DTrace-devel] [PATCH] test: ensure child processes are running for tst.manypids.sh
Kris Van Hees
kris.van.hees at oracle.com
Wed Mar 6 21:45:03 UTC 2024
The tst.manypids.sh test depends on a large amount of child processes
running, and tracing them all. However, there seems to be a small chance
that one of the child processes isn't completely started by the time the
probes are being created, causing dtrace to fail enabling all probes.
Adding a 1s delay after the child processes are started to give them time
to start completely (i.e. complete the clone and exec using the preload
library).
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
test/unittest/pid/tst.manypids.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/unittest/pid/tst.manypids.sh b/test/unittest/pid/tst.manypids.sh
index 1a98d621..29b60539 100755
--- a/test/unittest/pid/tst.manypids.sh
+++ b/test/unittest/pid/tst.manypids.sh
@@ -33,6 +33,8 @@ while [ "$i" -lt "$numkids" ]; do
let i=i+1
done
+sleep 1
+
export LD_PRELOAD=
let i=0
--
2.42.0
More information about the DTrace-devel
mailing list