File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export LC_ALL=C.UTF-8
9
9
travis_retry docker pull " $DOCKER_NAME_TAG "
10
10
export TSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/tsan"
11
11
export UBSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1"
12
- env | grep -E ' ^(CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(TSAN|UBSAN)_OPTIONS)' | tee /tmp/env
12
+ env | grep -E ' ^(BITCOIN_CONFIG| CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(TSAN|UBSAN)_OPTIONS)' | tee /tmp/env
13
13
if [[ $HOST = * -mingw32 ]]; then
14
14
DOCKER_ADMIN=" --cap-add SYS_ADMIN"
15
15
fi
Original file line number Diff line number Diff line change 3
3
# Distributed under the MIT software license, see the accompanying
4
4
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
"""Test node responses to invalid network messages."""
6
+ import os
6
7
import struct
7
8
8
9
from test_framework import messages
@@ -66,7 +67,10 @@ def run_test(self):
66
67
msg_at_size = msg_unrecognized ("b" * valid_data_limit )
67
68
assert len (msg_at_size .serialize ()) == msg_limit
68
69
69
- with node .assert_memory_usage_stable (increase_allowed = 0.5 ):
70
+ increase_allowed = 0.5
71
+ if [s for s in os .environ .get ("BITCOIN_CONFIG" , "" ).split (" " ) if "--with-sanitizers" in s and "address" in s ]:
72
+ increase_allowed = 3.5
73
+ with node .assert_memory_usage_stable (increase_allowed = increase_allowed ):
70
74
self .log .info (
71
75
"Sending a bunch of large, junk messages to test "
72
76
"memory exhaustion. May take a bit..." )
You can’t perform that action at this time.
0 commit comments