[compiler-rt] d271ace - [Test][ASan][Sanitizer] Make atos symbolizer test asan and simulator only (#158522)

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 14 19:59:28 PDT 2025


Author: thetruestblue
Date: 2025-09-14T19:59:24-07:00
New Revision: d271ace0850a8a4a24a9f62e6d1970352dd2f6e8

URL: https://github.com/llvm/llvm-project/commit/d271ace0850a8a4a24a9f62e6d1970352dd2f6e8
DIFF: https://github.com/llvm/llvm-project/commit/d271ace0850a8a4a24a9f62e6d1970352dd2f6e8.diff

LOG: [Test][ASan][Sanitizer] Make atos symbolizer test asan and simulator only (#158522)

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: 0f9bfe0a02ffff077a1a98065069b52744e31723

rdar://108003900

Added: 
    compiler-rt/test/asan/TestCases/Darwin/atos-symbolized-recover.cpp

Modified: 
    

Removed: 
    compiler-rt/test/sanitizer_common/TestCases/Darwin/atos-symbolized-recover.cpp


################################################################################
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..08b31af136fa0 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,9 @@
 // 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
 
 void bar() {
   void *invalid_addr = reinterpret_cast<void *>(0xDEADBEEF);
@@ -19,4 +16,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


        


More information about the llvm-commits mailing list