summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-04-17 11:49:16 -0700
committerBryant Mairs <bryant@mai.rs>2017-06-06 09:53:06 -0700
commit284d69a18c43398c9866d8e42842964745f9ee92 (patch)
treeae6f4f3c36f48d44eb9e24d26c456d1522b291ab /test/sys
parentb1d92311560146677a51d8a8b11fe014d6f4860a (diff)
downloadnix-284d69a18c43398c9866d8e42842964745f9ee92.zip
Skip failing MIPS tests
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_aio.rs4
-rw-r--r--test/sys/test_select.rs4
2 files changed, 6 insertions, 2 deletions
diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs
index 55cc50ca..6558f2dd 100644
--- a/test/sys/test_aio.rs
+++ b/test/sys/test_aio.rs
@@ -233,7 +233,9 @@ extern fn sigfunc(_: c_int) {
}
// Test an aio operation with completion delivered by a signal
+// FIXME: This test is ignored on mips because of failures in qemu in CI
#[test]
+#[cfg_attr(target_arch = "mips", ignore)]
fn test_write_sigev_signal() {
let _ = SIGUSR2_MTX.lock().expect("Mutex got poisoned by another test");
let sa = SigAction::new(SigHandler::Handler(sigfunc),
@@ -358,8 +360,10 @@ fn test_lio_listio_nowait() {
// Test lio_listio with LIO_NOWAIT and a SigEvent to indicate when all AioCb's
// are complete.
+// FIXME: This test is ignored on mips because of failures in qemu in CI.
#[test]
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
+#[cfg_attr(target_arch = "mips", ignore)]
fn test_lio_listio_signal() {
let _ = SIGUSR2_MTX.lock().expect("Mutex got poisoned by another test");
const INITIAL: &'static [u8] = b"abcdef123456";
diff --git a/test/sys/test_select.rs b/test/sys/test_select.rs
index 46083ffa..d50c7d74 100644
--- a/test/sys/test_select.rs
+++ b/test/sys/test_select.rs
@@ -35,10 +35,10 @@ fn test_fdset() {
// `select()` returns a 0 instead of a 1. Since this test has only been run on
// qemu, it's unclear if this is a OS or qemu bug. Just disable it on that arch
// for now.
-// FIXME: Fix tests for powerpc
+// FIXME: Fix tests for powerpc and mips
// FIXME: Add a link to an upstream qemu bug if there is one
#[test]
-#[cfg_attr(target_arch = "powerpc", ignore)]
+#[cfg_attr(any(target_arch = "powerpc", target_arch = "mips"), ignore)]
fn test_select() {
let (r1, w1) = pipe().unwrap();
write(w1, b"hi!").unwrap();