aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Sundahl <rsundahl@MacBook-Pro.local>2022-04-04 15:33:56 -0700
committerRoy Sundahl <rsundahl@apple.com>2022-04-05 12:21:36 -0700
commit47e7a224711573b48c5b8831d9091c72dfe8b8d3 (patch)
tree16362e7f36cfb2b529359c54792899587a6b931a
parente9ec16177f2b675829a7b73b6b72c64f5b40e73f (diff)
downloadllvm-47e7a224711573b48c5b8831d9091c72dfe8b8d3.zip
llvm-47e7a224711573b48c5b8831d9091c72dfe8b8d3.tar.gz
llvm-47e7a224711573b48c5b8831d9091c72dfe8b8d3.tar.bz2
[Darwin][ASan][Sanitizer] Enable dlclose-test for all darwin targets.
Test was being skipped on non-x86 darwin architectures. rdar://79795770 Differential Revision: https://reviews.llvm.org/D123099
-rw-r--r--compiler-rt/test/asan/TestCases/Posix/dlclose-test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/dlclose-test.cpp b/compiler-rt/test/asan/TestCases/Posix/dlclose-test.cpp
index 160c1c9..db5507a 100644
--- a/compiler-rt/test/asan/TestCases/Posix/dlclose-test.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/dlclose-test.cpp
@@ -9,10 +9,10 @@
// are globals.
// 6. BOOM
-// This sublte test assumes that after a foo.so is dlclose-d
-// we can mmap the region of memory that has been occupied by the library.
-// It works on x86 Linux, but not necessary anywhere else.
-// REQUIRES: x86-target-arch
+// This subtle test assumes that after a foo.so is dlclose-d
+// we can mmap the region of memory that was occupied by the library.
+// This test works on x86 and Darwin, but not confirmed working anywhere else.
+// REQUIRES: x86-target-arch || darwin
// RUN: %clangxx_asan -O0 -DSHARED_LIB %s -fPIC -shared -o %t-so.so
// RUN: %clangxx_asan -O0 %s %libdl -o %t && %run %t 2>&1 | FileCheck %s