diff options
| author | Martin Nordholts <enselic@gmail.com> | 2022-08-29 20:39:23 +0200 |
|---|---|---|
| committer | Martin Nordholts <enselic@gmail.com> | 2022-08-29 20:49:45 +0200 |
| commit | 6eae169ca2206671779b5b405052417a182a47e9 (patch) | |
| tree | 3eca074473ea80d8dfb7203ff47087c4644a2f10 | |
| parent | ddee45e1d7fd34563c13513d974f792fae41a2f7 (diff) | |
| download | rust-6eae169ca2206671779b5b405052417a182a47e9.tar.gz rust-6eae169ca2206671779b5b405052417a182a47e9.zip | |
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'
| -rw-r--r-- | src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs b/src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs index 07ff051f789..e8b4fe7ae52 100644 --- a/src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs +++ b/src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs @@ -10,7 +10,12 @@ pub enum SignalHandler { /// Helper to assert that [`libc::SIGPIPE`] has the expected signal handler. pub fn assert_sigpipe_handler(expected_handler: SignalHandler) { #[cfg(unix)] - #[cfg(not(any(target_os = "emscripten", target_os = "fuchsia", target_os = "horizon")))] + #[cfg(not(any( + target_os = "emscripten", + target_os = "fuchsia", + target_os = "horizon", + target_os = "android", + )))] { let prev = unsafe { libc::signal(libc::SIGPIPE, libc::SIG_IGN) }; |
