Skip to content

Commit 0b5ee21

Browse files
author
Gleb Pomykalov
committed
disable AF_ALG tests on QEMU
1 parent 2fd3251 commit 0b5ee21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/sys/test_socket.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ pub fn test_scm_rights() {
186186
close(w).unwrap();
187187
}
188188

189+
// Disable the test on emulated platforms due to a lack of support of AF_ALG in QEMU
190+
#[cfg_attr(not(any(target_arch = "x86_64", target_arch = "i686")), ignore)]
189191
#[cfg(any(target_os = "linux", target_os= "android"))]
190192
#[test]
191193
pub fn test_af_alg_cipher() {
@@ -248,6 +250,8 @@ pub fn test_af_alg_cipher() {
248250
assert_eq!(decrypted, payload);
249251
}
250252

253+
// Disable the test on emulated platforms due to a lack of support of AF_ALG in QEMU
254+
#[cfg_attr(not(any(target_arch = "x86_64", target_arch = "i686")), ignore)]
251255
#[cfg(any(target_os = "linux", target_os= "android"))]
252256
#[test]
253257
pub fn test_af_alg_aead() {

0 commit comments

Comments
 (0)