Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 02711a7

Browse files
authoredSep 23, 2024
[ASan][test] XFAIL Linux/preinstalled_signal.cpp on Linux/sparc64 (llvm#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`.
1 parent 898fd39 commit 02711a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
// This way of setting LD_PRELOAD does not work with Android test runner.
1818
// REQUIRES: !android
1919

20+
// Issue #109573: Cannot use syscall(__NR_rt_sigaction) on Linux/sparc64.
21+
// XFAIL: target={{sparc.*-.*-linux.*}}
22+
2023
#include <assert.h>
2124
#include <signal.h>
2225
#include <stdio.h>

0 commit comments

Comments
 (0)
Please sign in to comment.