[compiler-rt] Revert "[asan] Enable wait4 test on Android" (PR #125011)

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 17:34:18 PST 2025


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/125011

Reverts llvm/llvm-project#124879

>From 12946afdb1699439c4cad546f727101d696963e3 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Wed, 29 Jan 2025 20:34:02 -0500
Subject: [PATCH] Revert "[asan] Enable wait4 test on Android (#124879)"

This reverts commit 349eab186986e56d3e314193733a0443f6575850.
---
 compiler-rt/test/asan/TestCases/Posix/wait4.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/compiler-rt/test/asan/TestCases/Posix/wait4.cpp b/compiler-rt/test/asan/TestCases/Posix/wait4.cpp
index d6c42f9b1a9ce9..1e574d99fe00c6 100644
--- a/compiler-rt/test/asan/TestCases/Posix/wait4.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/wait4.cpp
@@ -4,6 +4,7 @@
 // RUN: %clangxx_asan -DWAIT4_RUSAGE -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
 // RUN: %clangxx_asan -DWAIT4_RUSAGE -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
 
+// XFAIL: android
 // UNSUPPORTED: darwin
 
 #include <assert.h>
@@ -11,6 +12,13 @@
 #include <unistd.h>
 
 int main(int argc, char **argv) {
+  // This test passes on some versions of Android NDK and fails on other.
+  // https://code.google.com/p/memory-sanitizer/issues/detail?id=64
+  // Make it fail unconditionally on Android.
+#ifdef __ANDROID__
+  return 0;
+#endif
+
   pid_t pid = fork();
   if (pid) { // parent
     int x[3];



More information about the llvm-commits mailing list