diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-03 20:21:37 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-03 20:21:37 +0000 |
commit | 59091c6011624e9828a2b128b5b556bd98d24c23 (patch) | |
tree | 0a41e59e018e73041b89f78fd8bd8938da5c8e7a | |
parent | Run the thread test until stopped (diff) | |
download | netfs-59091c6011624e9828a2b128b5b556bd98d24c23.tar.bz2 netfs-59091c6011624e9828a2b128b5b556bd98d24c23.tar.xz netfs-59091c6011624e9828a2b128b5b556bd98d24c23.zip |
Add some options to suppression sanitizer for known things
These exist in fuse and Ice, not here
-rw-r--r-- | netfs/unittests/Jamfile.jam | 5 | ||||
-rw-r--r-- | netfs/unittests/leak-suppressions.txt | 3 | ||||
-rw-r--r-- | netfs/unittests/thread-suppressions.txt | 5 |
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 |