-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Test][ASan][Sanitizer] Make symbolizer test asan and simulator only #158522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test][ASan][Sanitizer] Make symbolizer test asan and simulator only #158522
Conversation
@llvm/pr-subscribers-compiler-rt-sanitizer Author: None (thetruestblue) ChangesSimulator environments run only atos symbolizer rather than falling back to dladdr. Because sanitizer-common does not target simulators, move this test into asan and simulator only to make it predicatable test. Original change sha: 0f9bfe0 rdar://108003900 Full diff: https://github.com/llvm/llvm-project/pull/158522.diff 1 Files Affected:
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Darwin/atos-symbolized-recover.cpp b/compiler-rt/test/asan/TestCases/Darwin/atos-symbolized-recover.cpp
similarity index 69%
rename from compiler-rt/test/sanitizer_common/TestCases/Darwin/atos-symbolized-recover.cpp
rename to compiler-rt/test/asan/TestCases/Darwin/atos-symbolized-recover.cpp
index 4234e0c9a9af3..3ae6119a103d0 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Darwin/atos-symbolized-recover.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/atos-symbolized-recover.cpp
@@ -1,12 +1,10 @@
// Check that there is a warning when atos fails to symbolize an address
// and that atos continues symbolicating correctly after.
-// RUN: %clangxx -O0 %s -o %t
+// RUN: %clangxx_asan -O0 %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
-
-// This test tests for undefined behavior and is leading to various failures.
-// Going to disable to unblock CI and rethink a test for this. rdar://107846128
-// UNSUPPORTED: darwin
+// REQUIRES: iossim
+// UNSUPPORTED: ubsan
void bar() {
void *invalid_addr = reinterpret_cast<void *>(0xDEADBEEF);
@@ -19,4 +17,4 @@ int main() {
return 0;
// CHECK: WARNING: atos failed to symbolize address{{.*}}
// CHECK: {{.*}}atos-symbolized-recover.cpp:[[@LINE-3]]{{.*}}
-}
+}
\ No newline at end of file
|
Simulator environments run only atos symbolizer rather than falling back to dladdr. Because sanitizer-common does not target simulators, move this test into asan and simulator only to make it predicatable test. Original change sha: 0f9bfe0 rdar://108003900
ba0ece2
to
514fadb
Compare
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/23956 Here is the relevant piece of the build log for the reference
|
Simulator environments run only atos symbolizer rather than falling back to dladdr.
Because sanitizer-common does not target simulators, move this test into asan and simulator only to make it predicatable test.
Original change sha: 0f9bfe0
rdar://108003900