[compiler-rt] [Sanitizers][Test] XFAIL suppressions/fread_fwrite (PR #154243)

Mariusz Borsa via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 18:03:16 PDT 2025


https://github.com/wrotki created https://github.com/llvm/llvm-project/pull/154243

These tests are failing on current macOS version installed on Apple bot

rdar://158543555


>From d401b8ab4cf31e57d88d8a0d9b85a145c5c3716a Mon Sep 17 00:00:00 2001
From: Mariusz Borsa <m_borsa at apple.com>
Date: Mon, 18 Aug 2025 12:31:49 -0700
Subject: [PATCH 1/2] [Sanitizers][Test] XFAIL suppressions/fread_fwrite

These tests are failing on current macOS version installed on Apple bot

rdar://158543555
---
 .../test/asan/TestCases/Darwin/suppressions-sandbox.cpp        | 3 +++
 compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp         | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp b/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
index 651d0c5d05b07..fc1da56a969df 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
@@ -15,6 +15,9 @@
 // sandbox-exec isn't available on iOS
 // UNSUPPORTED: ios
 
+// Symbolizer fails to find test functions on current macOS bot version
+// XFAIL: target=arm{{.*}}
+
 #include <CoreFoundation/CoreFoundation.h>
 
 #if defined(SHARED_LIB)
diff --git a/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp b/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp
index c0629260418a3..5f0be27a36318 100644
--- a/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp
@@ -2,6 +2,9 @@
 // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-FWRITE
 // RUN: not %run %t 1 2>&1 | FileCheck %s --check-prefix=CHECK-FREAD
 
+// Symbolizer fails to find test functions on current macOS bot version
+// XFAIL: target=arm{{.*}}
+
 #include <stdio.h>
 #include <stdlib.h>
 

>From 919fe41a11c20615c95b791090fce7baf53d01e4 Mon Sep 17 00:00:00 2001
From: Mariusz Borsa <m_borsa at apple.com>
Date: Mon, 18 Aug 2025 17:54:46 -0700
Subject: [PATCH 2/2] [Sanitizers][Test] narrower constraint for XFAIL

It's a followup to https://github.com/llvm/llvm-project/pull/154189 ,
which broke test on android bot. Making sure XFAIL only happen on darwin
bots

rdar://158543555
---
 compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp | 2 +-
 compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp b/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
index fc1da56a969df..f12e2b2ada50d 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/suppressions-sandbox.cpp
@@ -16,7 +16,7 @@
 // UNSUPPORTED: ios
 
 // Symbolizer fails to find test functions on current macOS bot version
-// XFAIL: target=arm{{.*}}
+// XFAIL: system-darwin && target=arm{{.*}}
 
 #include <CoreFoundation/CoreFoundation.h>
 
diff --git a/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp b/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp
index 5f0be27a36318..c7b9280ea7d8e 100644
--- a/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cpp
@@ -3,7 +3,7 @@
 // RUN: not %run %t 1 2>&1 | FileCheck %s --check-prefix=CHECK-FREAD
 
 // Symbolizer fails to find test functions on current macOS bot version
-// XFAIL: target=arm{{.*}}
+// XFAIL: system-darwin && target=arm{{.*}}
 
 #include <stdio.h>
 #include <stdlib.h>



More information about the llvm-commits mailing list