Fix memory leaks & data races in tests (#4772)

* Add a few pre-made sanitizer suppressions

* Test Sanitization: Fix threading issues

* Test Sanitization: Allow deletion of PubSub

We still don't delete it in main code, but this allows us to try
deleting it in tests.

* Test Sanitization: Fix some memory leaks

* fix gtest clang-tidy warning

* const emojis test :-)
This commit is contained in:
pajlada
2023-08-27 14:07:46 +02:00
committed by GitHub
parent ac6708b3a2
commit 3f7671000a
18 changed files with 360 additions and 296 deletions
+2
View File
@@ -0,0 +1,2 @@
# Ignore openssl issues
interceptor_via_lib:libcrypto.so.3
+3
View File
@@ -0,0 +1,3 @@
# Ignore openssl issues
leak:libcrypto.so.3
leak:CRYPTO_zalloc
+17
View File
@@ -0,0 +1,17 @@
race:libdbus-1.so.3
deadlock:libdbus-1.so.3
race:libglib-2.0.so.0
race:libgio-2.0.so.0
# Not sure about these suppression
# race:qscopedpointer.h
# race:qarraydata.cpp
# race:qarraydata.h
# race:qarraydataops.h
# race:libQt6Core.so.6
# race:libQt6Gui.so.6
# race:libQt6XcbQpa.so.6
# race:libQt6Network.so.6
# very not sure about this one
# race:qstring.h
+2
View File
@@ -0,0 +1,2 @@
enum:NetworkResult.hpp
enum:gtest.h