[compiler-rt] 55a2c4e - [lsan] Remove use_tls=0 from a few tests
Leonard Grey via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 15:53:13 PDT 2023
Author: Leonard Grey
Date: 2023-06-20T18:52:11-04:00
New Revision: 55a2c4eb04b2c0c193d8d993ff1b8d4d94097c82
URL: https://github.com/llvm/llvm-project/commit/55a2c4eb04b2c0c193d8d993ff1b8d4d94097c82
DIFF: https://github.com/llvm/llvm-project/commit/55a2c4eb04b2c0c193d8d993ff1b8d4d94097c82.diff
LOG: [lsan] Remove use_tls=0 from a few tests
The Objective-C runtime now stashes some state in TLS so any
test that indirectly initializes an Objective-C object will
have false positive leaks unless use_tls=1 as is the default.
Differential Revision: https://reviews.llvm.org/D153081
Added:
Modified:
compiler-rt/test/lsan/TestCases/disabler.c
compiler-rt/test/lsan/TestCases/disabler.cpp
compiler-rt/test/lsan/TestCases/ignore_object.c
Removed:
################################################################################
diff --git a/compiler-rt/test/lsan/TestCases/disabler.c b/compiler-rt/test/lsan/TestCases/disabler.c
index 3d785f4fca58f..f0ff7403b2a07 100644
--- a/compiler-rt/test/lsan/TestCases/disabler.c
+++ b/compiler-rt/test/lsan/TestCases/disabler.c
@@ -1,6 +1,6 @@
// Test for __lsan_disable() / __lsan_enable().
// RUN: %clang_lsan %s -o %t
-// RUN: %env_lsan_opts=report_objects=1:use_registers=0:use_stacks=0:use_tls=0 not %run %t 2>&1 | FileCheck %s
+// RUN: %env_lsan_opts=report_objects=1:use_registers=0:use_stacks=0 not %run %t 2>&1 | FileCheck %s
// Investigate why it does not fail with use_tls=0
// UNSUPPORTED: arm-linux || armhf-linux
diff --git a/compiler-rt/test/lsan/TestCases/disabler.cpp b/compiler-rt/test/lsan/TestCases/disabler.cpp
index 2202cb53bb2a5..e3b18087de86d 100644
--- a/compiler-rt/test/lsan/TestCases/disabler.cpp
+++ b/compiler-rt/test/lsan/TestCases/disabler.cpp
@@ -1,6 +1,6 @@
// Test for ScopedDisabler.
// RUN: %clangxx_lsan %s -o %t
-// RUN: %env_lsan_opts=report_objects=1:use_registers=0:use_stacks=0:use_tls=0 not %run %t 2>&1 | FileCheck %s
+// RUN: %env_lsan_opts=report_objects=1:use_registers=0:use_stacks=0 not %run %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/lsan/TestCases/ignore_object.c b/compiler-rt/test/lsan/TestCases/ignore_object.c
index 25061f82ab5ad..9fb2ce7c47949 100644
--- a/compiler-rt/test/lsan/TestCases/ignore_object.c
+++ b/compiler-rt/test/lsan/TestCases/ignore_object.c
@@ -1,6 +1,6 @@
// Test for __lsan_ignore_object().
// RUN: %clang_lsan %s -o %t
-// RUN: %env_lsan_opts=report_objects=1:use_registers=0:use_stacks=0:use_tls=0 not %run %t 2>&1 | FileCheck %s
+// RUN: %env_lsan_opts=report_objects=1:use_registers=0:use_stacks=0 not %run %t 2>&1 | FileCheck %s
// Investigate why it does not fail with use_stack=0
// UNSUPPORTED: arm-linux || armhf-linux
More information about the llvm-commits
mailing list