Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions compiler-rt/test/asan/TestCases/Posix/wait4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@
// 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>
#include <sys/wait.h>
#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];
Expand Down