diff --git a/compiler-rt/test/asan/TestCases/Posix/no-fd.cpp b/compiler-rt/test/asan/TestCases/Posix/no-fd.cpp --- a/compiler-rt/test/asan/TestCases/Posix/no-fd.cpp +++ b/compiler-rt/test/asan/TestCases/Posix/no-fd.cpp @@ -1,6 +1,9 @@ // RUN: %clangxx_asan -std=c++11 -O0 %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s -// RUN: %env_asan_opts=debug=1,verbosity=2 %run %t 2>&1 | FileCheck %s + +// On Darwin, MallocNanoZone may log after execv, which messes up this test. +// Disable MallocNanoZone for this test since we don't use it anyway with asan. +// RUN: env MallocNanoZone=0 %run %t 2>&1 | FileCheck %s +// RUN: env MallocNanoZone=0 %env_asan_opts=debug=1,verbosity=2 %run %t 2>&1 | FileCheck %s // Test ASan initialization @@ -10,9 +13,6 @@ // lld - see https://bugs.llvm.org/show_bug.cgi?id=45076. // UNSUPPORTED: android, powerpc -// Deflake this test before reinabling for darwin (rdar://74992832) -// UNSUPPORTED: darwin - #include #include #include