Skip to content

Commit 6eae169

Browse files
committed
unix_sigpipe: Skip some tests on android; libc has no signal function
If we don't skip these tests, they will fail in CI when `python3 ../x.py --stage 2 test --host= --target arm-linux-androideabi` runs. The failure is: auxiliary/libsigpipe_utils.so: error: undefined reference to 'signal'
1 parent ddee45e commit 6eae169

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ pub enum SignalHandler {
1010
/// Helper to assert that [`libc::SIGPIPE`] has the expected signal handler.
1111
pub fn assert_sigpipe_handler(expected_handler: SignalHandler) {
1212
#[cfg(unix)]
13-
#[cfg(not(any(target_os = "emscripten", target_os = "fuchsia", target_os = "horizon")))]
13+
#[cfg(not(any(
14+
target_os = "emscripten",
15+
target_os = "fuchsia",
16+
target_os = "horizon",
17+
target_os = "android",
18+
)))]
1419
{
1520
let prev = unsafe { libc::signal(libc::SIGPIPE, libc::SIG_IGN) };
1621

0 commit comments

Comments
 (0)