summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 18:02:49 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 18:02:49 -0400
commitd110f9c9a684e2ab030a65b1366dfb0f037a8279 (patch)
tree453a4be2d328f8a955fffbb8cbe99158f8952a11
parent3b606ff787967d4f51af79deb8313210e4ca5754 (diff)
downloadtor-d110f9c9a684e2ab030a65b1366dfb0f037a8279.tar.gz
tor-d110f9c9a684e2ab030a65b1366dfb0f037a8279.zip
Add a leak suppression for backtrace_alloc
This appears to be an internal rust thing: I don't know why it's leaking. We should investigate further.
-rw-r--r--src/test/include.am1
-rw-r--r--src/test/rust_supp.txt1
-rwxr-xr-xsrc/test/test_rust.sh3
3 files changed, 3 insertions, 2 deletions
diff --git a/src/test/include.am b/src/test/include.am
index 4146de73b1..4fe222b550 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -364,6 +364,7 @@ EXTRA_DIST += \
src/test/fuzz_static_testcases.sh \
src/test/slownacl_curve25519.py \
src/test/zero_length_keys.sh \
+ src/test/rust_supp.txt \
src/test/test_keygen.sh \
src/test/test_key_expiration.sh \
src/test/test_zero_length_keys.sh \
diff --git a/src/test/rust_supp.txt b/src/test/rust_supp.txt
new file mode 100644
index 0000000000..7fa50f3fb1
--- /dev/null
+++ b/src/test/rust_supp.txt
@@ -0,0 +1 @@
+leak:backtrace_alloc
diff --git a/src/test/test_rust.sh b/src/test/test_rust.sh
index 4795258d06..b1eae7d5f2 100755
--- a/src/test/test_rust.sh
+++ b/src/test/test_rust.sh
@@ -3,6 +3,7 @@
set -e
+export LSAN_OPTIONS=suppressions=${abs_top_srcdir}/src/test/rust_supp.txt
for cargo_toml_dir in "${abs_top_srcdir:-../../..}"/src/rust/*; do
if [ -e "${cargo_toml_dir}/Cargo.toml" ]; then
@@ -16,5 +17,3 @@ for cargo_toml_dir in "${abs_top_srcdir:-../../..}"/src/rust/*; do
done
exit $exitcode
-
-