diff --git a/test/functional/interface_usdt_coinselection.py b/test/functional/interface_usdt_coinselection.py index 11bb7fa12ff..ffb97fb8d18 100755 --- a/test/functional/interface_usdt_coinselection.py +++ b/test/functional/interface_usdt_coinselection.py @@ -117,6 +117,7 @@ class CoinSelectionTracepointTest(BitcoinTestFramework): self.skip_if_no_python_bcc() self.skip_if_no_bpf_permissions() self.skip_if_no_wallet() + self.skip_if_running_under_valgrind() def get_tracepoints(self, expected_types): events = [] diff --git a/test/functional/interface_usdt_mempool.py b/test/functional/interface_usdt_mempool.py index c356d0f010c..0ffae66752b 100755 --- a/test/functional/interface_usdt_mempool.py +++ b/test/functional/interface_usdt_mempool.py @@ -158,6 +158,7 @@ class MempoolTracepointTest(BitcoinTestFramework): self.skip_if_no_bitcoind_tracepoints() self.skip_if_no_python_bcc() self.skip_if_no_bpf_permissions() + self.skip_if_running_under_valgrind() def added_test(self): """Add a transaction to the mempool and make sure the tracepoint returns diff --git a/test/functional/interface_usdt_net.py b/test/functional/interface_usdt_net.py index d9d7ee12e09..de481133aae 100755 --- a/test/functional/interface_usdt_net.py +++ b/test/functional/interface_usdt_net.py @@ -254,6 +254,7 @@ class NetTracepointTest(BitcoinTestFramework): self.skip_if_no_bitcoind_tracepoints() self.skip_if_no_python_bcc() self.skip_if_no_bpf_permissions() + self.skip_if_running_under_valgrind() def run_test(self): self.p2p_message_tracepoint_test() diff --git a/test/functional/interface_usdt_utxocache.py b/test/functional/interface_usdt_utxocache.py index b30d0e88ac7..fe7f7e3adb6 100755 --- a/test/functional/interface_usdt_utxocache.py +++ b/test/functional/interface_usdt_utxocache.py @@ -150,6 +150,7 @@ class UTXOCacheTracepointTest(BitcoinTestFramework): self.skip_if_no_bitcoind_tracepoints() self.skip_if_no_python_bcc() self.skip_if_no_bpf_permissions() + self.skip_if_running_under_valgrind() def run_test(self): self.wallet = MiniWallet(self.nodes[0]) diff --git a/test/functional/interface_usdt_validation.py b/test/functional/interface_usdt_validation.py index f7d518d8930..f7e2cb84e5f 100755 --- a/test/functional/interface_usdt_validation.py +++ b/test/functional/interface_usdt_validation.py @@ -64,6 +64,7 @@ class ValidationTracepointTest(BitcoinTestFramework): self.skip_if_no_bitcoind_tracepoints() self.skip_if_no_python_bcc() self.skip_if_no_bpf_permissions() + self.skip_if_running_under_valgrind() def run_test(self): # Tests the validation:block_connected tracepoint by generating blocks diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 75a0cb6f112..f11554fe76e 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -1016,6 +1016,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): if not self.is_external_signer_compiled(): raise SkipTest("external signer support has not been compiled.") + def skip_if_running_under_valgrind(self): + """Skip the running test if Valgrind is being used.""" + if self.options.valgrind: + raise SkipTest("This test is not compatible with Valgrind.") + def is_cli_compiled(self): """Checks whether bitcoin-cli was compiled.""" return self.config["components"].getboolean("ENABLE_CLI")