Disable leak checks for some tests that intentionally leak (#6997)
This commit is contained in:
parent
cc72d541e4
commit
13a388ff14
|
@ -18,6 +18,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifdef ADDRESS_SANITIZER
|
||||
#include <sanitizer/lsan_interface.h>
|
||||
#endif
|
||||
|
||||
#include "fdbclient/FDBOptions.g.h"
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "fdbclient/GenericManagementAPI.actor.h"
|
||||
|
@ -2763,6 +2767,11 @@ template <class T>
|
|||
THREAD_FUNC runSingleAssignmentVarTest(void* arg) {
|
||||
noUnseed = true;
|
||||
|
||||
// This test intentionally leaks memory
|
||||
#ifdef ADDRESS_SANITIZER
|
||||
__lsan::ScopedDisabler disableLeakChecks;
|
||||
#endif
|
||||
|
||||
volatile bool* done = (volatile bool*)arg;
|
||||
try {
|
||||
for (int i = 0; i < 25; ++i) {
|
||||
|
|
Loading…
Reference in New Issue