test: valgrind --trace-children=yes for bitcoin wrapper

Github-Pull: #34608
Rebased-From: fa5d478853a88ce7d7095b6abfe8112390298b65
This commit is contained in:
MarcoFalke 2026-02-18 15:25:09 +01:00 committed by fanquake
parent dd8924909a
commit dca7700269
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -81,6 +81,7 @@ class Binaries:
"valgrind",
f"--suppressions={suppressions_file}",
"--gen-suppressions=all",
"--trace-children=yes", # Needed for 'bitcoin' wrapper
"--exit-on-first-error=yes",
"--error-exitcode=1",
"--quiet",
@ -263,7 +264,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
parser.add_argument("--perf", dest="perf", default=False, action="store_true",
help="profile running nodes with perf for the duration of the test")
parser.add_argument("--valgrind", dest="valgrind", default=False, action="store_true",
help="Run binaries under the valgrind memory error detector: Expect at least a ~10x slowdown. Does not apply to previous release binaries or binaries called from the bitcoin wrapper executable.")
help="Run binaries under the valgrind memory error detector: Expect at least a ~10x slowdown. Does not apply to previous release binaries.")
parser.add_argument("--randomseed", type=int,
help="set a random seed for deterministically reproducing a previous test run")
parser.add_argument("--timeout-factor", dest="timeout_factor", type=float, help="adjust test timeouts by a factor. Setting it to 0 disables all timeouts")