From 3ad2cd5e70d0fb1d7831a735a4ec8c8b18578d75 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 11 Apr 2025 15:09:41 +0000 Subject: [PATCH] [asan] Fix-forward #133175 by restricting newly-added tests to Linux This was failing on Mac (https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/4107/ and https://issues.chromium.org/issues/409995888). Since this is an experimental feature, rather than play whack-a-mole with selectively disabling failing platforms (previously done for Android), this patch restricts it to Linux. --- .../TestCases/use-after-poison-history-size-partial-granule.cpp | 1 + .../test/asan/TestCases/use-after-poison-history-size.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/use-after-poison-history-size-partial-granule.cpp b/compiler-rt/test/asan/TestCases/use-after-poison-history-size-partial-granule.cpp index ad22571ce5cf..e5fecbb9573f 100644 --- a/compiler-rt/test/asan/TestCases/use-after-poison-history-size-partial-granule.cpp +++ b/compiler-rt/test/asan/TestCases/use-after-poison-history-size-partial-granule.cpp @@ -6,6 +6,7 @@ // RUN: %clangxx_asan -O0 %s -o %t && env ASAN_OPTIONS=poison_history_size=1000 not %run %t 2>&1 | FileCheck %s // TODO +// REQUIRES: linux // UNSUPPORTED: android #include diff --git a/compiler-rt/test/asan/TestCases/use-after-poison-history-size.cpp b/compiler-rt/test/asan/TestCases/use-after-poison-history-size.cpp index 6e3dfa4b3196..d97e6fa06e0a 100644 --- a/compiler-rt/test/asan/TestCases/use-after-poison-history-size.cpp +++ b/compiler-rt/test/asan/TestCases/use-after-poison-history-size.cpp @@ -17,6 +17,7 @@ // RUN: %clangxx_asan -O0 %s -o %t && env ASAN_OPTIONS=poison_history_size=1 not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK-ACDE,CHECK-BDE,CHECK-E // TODO +// REQUIRES: linux // UNSUPPORTED: android #include