[compiler-rt] 0773a5c - [lsan] Convert tests to check 'target=...'
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 06:26:24 PST 2022
Author: Paul Robinson
Date: 2022-12-19T06:26:15-08:00
New Revision: 0773a5cbe860901d78551d195deba822225a6461
URL: https://github.com/llvm/llvm-project/commit/0773a5cbe860901d78551d195deba822225a6461
DIFF: https://github.com/llvm/llvm-project/commit/0773a5cbe860901d78551d195deba822225a6461.diff
LOG: [lsan] Convert tests to check 'target=...'
Part of the project to eliminate special handling for triples in lit
expressions.
Added:
Modified:
compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
compiler-rt/test/lsan/TestCases/Linux/use_tls_dynamic.cpp
compiler-rt/test/lsan/TestCases/large_allocation_leak.cpp
compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
compiler-rt/test/lsan/TestCases/swapcontext.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp b/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
index 1f54d296e93f4..2158c8a26bac2 100644
--- a/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
+++ b/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
@@ -2,7 +2,7 @@
// RUN: %clangxx_lsan %s -o %t && not %run %t 2>&1 | FileCheck %s
/// Fails on clang-cmake-aarch64-full (glibc 2.27-3ubuntu1.4).
-// UNSUPPORTED: aarch64
+// UNSUPPORTED: target=aarch64{{.*}}
#include <assert.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/lsan/TestCases/Linux/use_tls_dynamic.cpp b/compiler-rt/test/lsan/TestCases/Linux/use_tls_dynamic.cpp
index a860a06fc42dd..d9e2925cce85c 100644
--- a/compiler-rt/test/lsan/TestCases/Linux/use_tls_dynamic.cpp
+++ b/compiler-rt/test/lsan/TestCases/Linux/use_tls_dynamic.cpp
@@ -9,7 +9,7 @@
// RUN: %env_lsan_opts="report_objects=1:use_stacks=0:use_registers=0:use_ld_allocations=0:use_tls=0" not %run %t 2>&1 | FileCheck %s
// RUN: %env_lsan_opts="report_objects=1:use_stacks=0:use_registers=0:use_ld_allocations=0:use_tls=1" %run %t 2>&1
// RUN: %env_lsan_opts="" %run %t 2>&1
-// UNSUPPORTED: arm,powerpc,i386-linux && !android
+// UNSUPPORTED: target={{(arm|powerpc).*}},i386-linux && !android
#ifndef BUILD_DSO
#include <assert.h>
diff --git a/compiler-rt/test/lsan/TestCases/large_allocation_leak.cpp b/compiler-rt/test/lsan/TestCases/large_allocation_leak.cpp
index cd8ea44428c1b..53a7fa2e5330f 100644
--- a/compiler-rt/test/lsan/TestCases/large_allocation_leak.cpp
+++ b/compiler-rt/test/lsan/TestCases/large_allocation_leak.cpp
@@ -4,7 +4,7 @@
// For 32 bit LSan it's pretty likely that large chunks are "reachable" from some
// internal data structures (e.g. Glibc global data).
-// UNSUPPORTED: x86,i686,arm
+// UNSUPPORTED: i686,target={{(x86|arm).*}}
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp b/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
index 789050e0806b0..37b5f03b497a9 100644
--- a/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
+++ b/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
@@ -9,7 +9,7 @@
// UNSUPPORTED: arm-linux, armhf-linux
// TSD on NetBSD does not use TLS
-// UNSUPPORTED: netbsd
+// UNSUPPORTED: target={{.*netbsd.*}}
#include <assert.h>
#include <limits.h>
diff --git a/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp b/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
index 11bb4faf19dcf..dafc9e9d5c0b7 100644
--- a/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
+++ b/compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
@@ -14,7 +14,7 @@
//
// x86 passes parameters through stack that may lead to false negatives
// The same applies to s390x register save areas.
-// UNSUPPORTED: x86,i686,powerpc64,arm,s390x
+// UNSUPPORTED: i686,target={{(x86|powerpc64|arm|s390x).*}}
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/test/lsan/TestCases/swapcontext.cpp b/compiler-rt/test/lsan/TestCases/swapcontext.cpp
index f78867cc06959..a3eb1852f36ae 100644
--- a/compiler-rt/test/lsan/TestCases/swapcontext.cpp
+++ b/compiler-rt/test/lsan/TestCases/swapcontext.cpp
@@ -5,7 +5,7 @@
// RUN: %env_lsan_opts= %run %t 2>&1
// RUN: %env_lsan_opts= not %run %t foo 2>&1 | FileCheck %s
// Missing 'getcontext' and 'makecontext' on Android.
-// UNSUPPORTED: arm,aarch64,powerpc64,android
+// UNSUPPORTED: target={{(arm|aarch64|powerpc64).*}},android
#include "sanitizer_common/sanitizer_ucontext.h"
#include <stdio.h>
More information about the llvm-commits
mailing list