Skip to content

Commit

Permalink
[ASan][test] XFAIL Linux/preinstalled_signal.cpp on Linux/sparc64 (ll…
Browse files Browse the repository at this point in the history
…vm#109623)

With ASan testing enabled on SPARC as per PR llvm#107405, the
```
  AddressSanitizer-sparc-linux-dynamic :: TestCases/Linux/preinstalled_signal.cpp
```
test `FAIL`s on Linux/sparc64. See Issue llvm#109573 for all the details,
but the core is that `syscall(__NR_rt_sigaction)` cannot be used because
it takes an additional argument that isn't accessible outside of `libc`,
while switching to `sigaction` instead changes the order of
`AsanInitInternal` and `Init`, breaking the test.

Therefore this patch `XFAIL`s the test.

Tested on `sparc64-unknown-linux-gnu` and `x86_64-pc-linux-gnu`.
  • Loading branch information
rorth authored and augusto2112 committed Sep 26, 2024
1 parent de074ad commit 6486a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// This way of setting LD_PRELOAD does not work with Android test runner.
// REQUIRES: !android

// Issue #109573: Cannot use syscall(__NR_rt_sigaction) on Linux/sparc64.
// XFAIL: target={{sparc.*-.*-linux.*}}

#include <assert.h>
#include <signal.h>
#include <stdio.h>
Expand Down

0 comments on commit 6486a10

Please sign in to comment.