From 7014ded17eaf020a7e018b6bc48910fcfeedc7f0 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 11 Feb 2021 14:21:11 +0100 Subject: [PATCH] tests: use electric-fence in addition to sanitizers --- tests/ci/install.sh | 1 + tests/ci/run.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ci/install.sh b/tests/ci/install.sh index 7139bdee..08b3cfb6 100755 --- a/tests/ci/install.sh +++ b/tests/ci/install.sh @@ -19,6 +19,7 @@ EOS libsnmp-dev libxml2-dev \ libevent-dev libreadline-dev libbsd-dev \ check libc6-dbg libseccomp-dev \ + electric-fence \ libpcap-dev libcap-dev systemtap-sdt-dev \ snmpd snmp \ python3-pip python3-setuptools python3-wheel diff --git a/tests/ci/run.sh b/tests/ci/run.sh index e1d36f3e..367d3609 100755 --- a/tests/ci/run.sh +++ b/tests/ci/run.sh @@ -43,8 +43,9 @@ case "$(uname -s)" in ;; Linux) # Integration tests + efence="env LD_PRELOAD=/usr/lib/libefence.so EF_DISABLE_BANNER=1 EF_ALLOW_MALLOC_0=1" cd tests/integration - sudo $(which python3) -m pytest -n 5 -vv --boxed || \ - sudo $(which python3) -m pytest -vvv --last-failed --maxfail=5 + sudo ${efence} $(which python3) -m pytest -n 5 -vv --boxed || \ + sudo ${efence} $(which python3) -m pytest -vvv --last-failed --maxfail=5 ;; esac -- 2.39.5