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
99travis_retry docker pull " $DOCKER_NAME_TAG "
1010export TSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/tsan"
1111export 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
1313if [[ $HOST = * -mingw32 ]]; then
1414 DOCKER_ADMIN=" --cap-add SYS_ADMIN"
1515fi
Original file line number Diff line number Diff line change 33# Distributed under the MIT software license, see the accompanying
44# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55"""Test node responses to invalid network messages."""
6+ import os
67import struct
78
89from test_framework import messages
@@ -66,7 +67,10 @@ def run_test(self):
6667 msg_at_size = msg_unrecognized ("b" * valid_data_limit )
6768 assert len (msg_at_size .serialize ()) == msg_limit
6869
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 ):
7074 self .log .info (
7175 "Sending a bunch of large, junk messages to test "
7276 "memory exhaustion. May take a bit..." )
You can’t perform that action at this time.
0 commit comments