diff options
| author | Thurston Dang <thurston@google.com> | 2025-10-19 17:54:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-19 10:54:21 -0700 |
| commit | 8b74582591ba22d8e8454efe35c96fa1c393571a (patch) | |
| tree | e1203b08a21d32c35a5584a0e1050ae69430e3ef /clang/unittests/Format/FormatTestJava.cpp | |
| parent | fd073a3fbaf0b05fae61cca5def80ce0adaeadb3 (diff) | |
| download | llvm-8b74582591ba22d8e8454efe35c96fa1c393571a.zip llvm-8b74582591ba22d8e8454efe35c96fa1c393571a.tar.gz llvm-8b74582591ba22d8e8454efe35c96fa1c393571a.tar.bz2 | |
[sanitizer][test] Clean up allow_user_segv.cpp test case (#163870)
This test case has two issues:
- it has some special treatment of SIGBUS, ostensibly to handle old
Darwin platforms, but this been silently broken for years because the
assertions only check for SEGV.
- it has `XFAIL: !compiler-rt-optimized && tsan` [*], because the null
pointer dereference will trigger an assertion (invalid app memory)
rather than a segfault.
We fix both issues by directly raising SIGSEGV. We also considerably
simplify the test case, while maintaining the core test of chaining the
segfault handlers.
[*] This test might also fail when other sanitizer runtimes are compiled
with assertions, though those combinations are not well-tested by
buildbots.
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions
