Skip to content

Commit d271ace

Browse files
[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: 0f9bfe0 rdar://108003900
1 parent d5f58a5 commit d271ace

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Check that there is a warning when atos fails to symbolize an address
22
// and that atos continues symbolicating correctly after.
33

4-
// RUN: %clangxx -O0 %s -o %t
4+
// RUN: %clangxx_asan -O0 %s -o %t
55
// RUN: not %run %t 2>&1 | FileCheck %s
6-
7-
// This test tests for undefined behavior and is leading to various failures.
8-
// Going to disable to unblock CI and rethink a test for this. rdar://107846128
9-
// UNSUPPORTED: darwin
6+
// REQUIRES: iossim
107

118
void bar() {
129
void *invalid_addr = reinterpret_cast<void *>(0xDEADBEEF);
@@ -19,4 +16,4 @@ int main() {
1916
return 0;
2017
// CHECK: WARNING: atos failed to symbolize address{{.*}}
2118
// CHECK: {{.*}}atos-symbolized-recover.cpp:[[@LINE-3]]{{.*}}
22-
}
19+
}

0 commit comments

Comments
 (0)