Skip to content

Commit 3871df3

Browse files
committed
test: skip test_af_alg_cipher() on aarch64/Linux
1 parent a5fb34b commit 3871df3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

test/sys/test_socket.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -917,9 +917,15 @@ pub fn test_scm_rights() {
917917
close(received_r).unwrap();
918918
}
919919

920-
// Disable the test on emulated platforms due to not enabled support of AF_ALG in QEMU from rust cross
920+
// 1. Disable the test on emulated platforms due to not enabled support of
921+
// AF_ALG in QEMU from rust cross
922+
// 2. Disable the test on aarch64/Linux CI because bind() fails with ENOENT
923+
// https://github.com/nix-rust/nix/issues/1352
921924
#[cfg(linux_android)]
922-
#[cfg_attr(qemu, ignore)]
925+
#[cfg_attr(
926+
any(qemu, all(target_os = "linux", target_arch = "aarch64")),
927+
ignore
928+
)]
923929
#[test]
924930
pub fn test_af_alg_cipher() {
925931
use nix::sys::socket::sockopt::AlgSetKey;
@@ -930,11 +936,6 @@ pub fn test_af_alg_cipher() {
930936
use nix::unistd::read;
931937
use std::io::IoSlice;
932938

933-
skip_if_cirrus!("Fails for an unknown reason Cirrus CI. Bug #1352");
934-
// Travis's seccomp profile blocks AF_ALG
935-
// https://docs.docker.com/engine/security/seccomp/
936-
skip_if_seccomp!(test_af_alg_cipher);
937-
938939
let alg_type = "skcipher";
939940
let alg_name = "ctr-aes-aesni";
940941
// 256-bits secret key

0 commit comments

Comments
 (0)