summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/unittests/Jamfile.jam5
-rw-r--r--netfs/unittests/leak-suppressions.txt3
-rw-r--r--netfs/unittests/thread-suppressions.txt5
3 files changed, 13 insertions, 0 deletions
diff --git a/netfs/unittests/Jamfile.jam b/netfs/unittests/Jamfile.jam
index f1f3dba..dcb2322 100644
--- a/netfs/unittests/Jamfile.jam
+++ b/netfs/unittests/Jamfile.jam
@@ -1,11 +1,16 @@
lib boost_utf : : <name>boost_unit_test_framework ;
+path-constant leak-san-suppressions : leak-suppressions.txt ;
+path-constant thread-san-suppressions : thread-suppressions.txt ;
+
project
: requirements
<toolset>tidy:<xcheckxx>misc-non-private-member-variables-in-classes
<toolset>tidy:<xcheckxx>hicpp-special-member-functions
<toolset>tidy:<xcheckxx>hicpp-explicit-conversions
<toolset>tidy:<xcheckxx>hicpp-member-init
+ <leak-sanitizer>on:<testing.launcher>LSAN_OPTIONS=suppressions=$(leak-san-suppressions)
+ <thread-sanitizer>on:<testing.launcher>TSAN_OPTIONS=suppressions=$(thread-san-suppressions)
;
path-constant me : . ;
diff --git a/netfs/unittests/leak-suppressions.txt b/netfs/unittests/leak-suppressions.txt
new file mode 100644
index 0000000..42eae90
--- /dev/null
+++ b/netfs/unittests/leak-suppressions.txt
@@ -0,0 +1,3 @@
+# OpenLDAP leaks when calling getpwent/getgrent
+leak:ber_memalloc_x
+leak:ber_memcalloc_x
diff --git a/netfs/unittests/thread-suppressions.txt b/netfs/unittests/thread-suppressions.txt
new file mode 100644
index 0000000..95c4982
--- /dev/null
+++ b/netfs/unittests/thread-suppressions.txt
@@ -0,0 +1,5 @@
+# Unmount Fuse filesystem while daemon is reading socket (expected)
+race:fmp::Run::~Run
+
+# Pfft... no idea
+race:IceInternal::PromiseOutgoing