mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 09:15:04 +02:00
test: enable feature_bind_extra on macOS and BSD
`feature_bind_extra` checks `-bind` and `-whitebind` by comparing the node's listening sockets with the expected addresses. Add `get_bind_addrs` support for macOS, FreeBSD, NetBSD, and OpenBSD using `lsof`, and switch the test to the POSIX platform guard so it runs there too. On FreeBSD, pass `-Di` to avoid device-cache warnings on stderr that the functional test runner treats as failures. Co-authored-by: willcl-ark <will8clark@gmail.com> Co-authored-by: fanquake <fanquake@gmail.com>
This commit is contained in:
@@ -32,8 +32,7 @@ class BindExtraTest(BitcoinTestFramework):
|
||||
self.num_nodes = 3
|
||||
|
||||
def skip_test_if_missing_module(self):
|
||||
# Due to OS-specific network stats queries, we only run on Linux.
|
||||
self.skip_if_platform_not_linux()
|
||||
self.skip_if_platform_not_posix()
|
||||
|
||||
def setup_network(self):
|
||||
loopback_ipv4 = addr_to_hex("127.0.0.1")
|
||||
|
||||
Reference in New Issue
Block a user