summaryrefslogtreecommitdiff
path: root/test/test_mq.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-08-27 21:22:44 -0600
committerAlan Somers <asomers@gmail.com>2021-08-27 22:31:20 -0600
commit18c095b36782bf9077f6f2ea15c1e6426847f604 (patch)
tree50c0fe3cee5b797edfab9c6e99c33677432271dc /test/test_mq.rs
parenta593227c7e5238789919ed4eb842154f70369502 (diff)
downloadnix-18c095b36782bf9077f6f2ea15c1e6426847f604.zip
Ignore vsock tests on Linux aarch64
Apparently AWS Graviton containers don't support it. socket() retunrs EAFNOSUPPORT in that environment. Also, be more selective about skipping tests under QEMU Instead of skipping them on architectures where we happen to use QEMU, only skip them when QEMU is actually being used.
Diffstat (limited to 'test/test_mq.rs')
-rw-r--r--test/test_mq.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/test_mq.rs b/test/test_mq.rs
index d0826923..430df5dd 100644
--- a/test/test_mq.rs
+++ b/test/test_mq.rs
@@ -60,7 +60,11 @@ fn test_mq_getattr() {
// FIXME: Fix failures for mips in QEMU
#[test]
#[cfg(not(any(target_os = "netbsd")))]
-#[cfg_attr(any(target_arch = "mips", target_arch = "mips64"), ignore)]
+#[cfg_attr(all(
+ qemu,
+ any(target_arch = "mips", target_arch = "mips64")
+ ), ignore
+)]
fn test_mq_setattr() {
use nix::mqueue::{mq_getattr, mq_setattr};
const MSG_SIZE: mq_attr_member_t = 32;
@@ -97,7 +101,11 @@ fn test_mq_setattr() {
// FIXME: Fix failures for mips in QEMU
#[test]
#[cfg(not(any(target_os = "netbsd")))]
-#[cfg_attr(any(target_arch = "mips", target_arch = "mips64"), ignore)]
+#[cfg_attr(all(
+ qemu,
+ any(target_arch = "mips", target_arch = "mips64")
+ ), ignore
+)]
fn test_mq_set_nonblocking() {
use nix::mqueue::{mq_getattr, mq_set_nonblock, mq_remove_nonblock};
const MSG_SIZE: mq_attr_member_t = 32;