Skip to content

Commit 59613ac

Browse files
authored
Revert "[asan] Enable wait4 test on Android" (#125011)
Reverts #124879
1 parent a8d4335 commit 59613ac

File tree

1 file changed

+8
-0
lines changed
  • compiler-rt/test/asan/TestCases/Posix

1 file changed

+8
-0
lines changed

compiler-rt/test/asan/TestCases/Posix/wait4.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44
// RUN: %clangxx_asan -DWAIT4_RUSAGE -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
55
// RUN: %clangxx_asan -DWAIT4_RUSAGE -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
66

7+
// XFAIL: android
78
// UNSUPPORTED: darwin
89

910
#include <assert.h>
1011
#include <sys/wait.h>
1112
#include <unistd.h>
1213

1314
int main(int argc, char **argv) {
15+
// This test passes on some versions of Android NDK and fails on other.
16+
// https://code.google.com/p/memory-sanitizer/issues/detail?id=64
17+
// Make it fail unconditionally on Android.
18+
#ifdef __ANDROID__
19+
return 0;
20+
#endif
21+
1422
pid_t pid = fork();
1523
if (pid) { // parent
1624
int x[3];

0 commit comments

Comments
 (0)