[compiler-rt] 3ad2cd5 - [asan] Fix-forward #133175 by restricting newly-added tests to Linux

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 08:11:40 PDT 2025


Author: Thurston Dang
Date: 2025-04-11T15:09:41Z
New Revision: 3ad2cd5e70d0fb1d7831a735a4ec8c8b18578d75

URL: https://github.com/llvm/llvm-project/commit/3ad2cd5e70d0fb1d7831a735a4ec8c8b18578d75
DIFF: https://github.com/llvm/llvm-project/commit/3ad2cd5e70d0fb1d7831a735a4ec8c8b18578d75.diff

LOG: [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.

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/use-after-poison-history-size-partial-granule.cpp
    compiler-rt/test/asan/TestCases/use-after-poison-history-size.cpp

Removed: 
    


################################################################################
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 ad22571ce5cf4..e5fecbb9573fe 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 <stdio.h>

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 6e3dfa4b31968..d97e6fa06e0a3 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 <stdio.h>


        


More information about the llvm-commits mailing list