summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-12-14 19:55:26 -0700
committerGitHub <noreply@github.com>2020-12-14 19:55:26 -0700
commitb1b162fe1831c58243487351d933e5407b821fe7 (patch)
tree8f3f55648b7d0d1930b270a523691f35817a7714 /test
parentd922c72a765640c5e190fb01129f712e6ac513df (diff)
parentd87e6b28202ce9b3e2bebd1ba93e3df1f1e9fef6 (diff)
downloadnix-b1b162fe1831c58243487351d933e5407b821fe7.zip
Merge pull request #1358 from asomers/rust_1.40.0
Raise MSRV to 1.40.0
Diffstat (limited to 'test')
-rw-r--r--test/sys/test_aio.rs3
-rw-r--r--test/test_unistd.rs8
2 files changed, 4 insertions, 7 deletions
diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs
index 37ad3257..3878da94 100644
--- a/test/sys/test_aio.rs
+++ b/test/sys/test_aio.rs
@@ -137,6 +137,9 @@ fn test_fsync_error() {
// in Travis's version of glibc or Linux. Either way, we must skip the test.
// https://github.com/nix-rust/nix/issues/1099
#[cfg_attr(target_os = "linux", ignore)]
+// On Cirrus, aio_suspend is failing with EINVAL
+// https://github.com/nix-rust/nix/issues/1361
+#[cfg_attr(target_os = "macos", ignore)]
fn test_aio_suspend() {
const INITIAL: &[u8] = b"abcdef123456";
const WBUF: &[u8] = b"CDEFG";
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index a5c6a332..d169d6e0 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -1064,13 +1064,7 @@ fn test_ttyname_not_pty() {
}
#[test]
-#[cfg(all(not(target_os = "redox"), not(target_env = "musl")))]
+#[cfg(all(not(target_os = "redox")))]
fn test_ttyname_invalid_fd() {
assert_eq!(ttyname(-1), Err(Error::Sys(Errno::EBADF)));
}
-
-#[test]
-#[cfg(all(not(target_os = "redox"), target_env = "musl"))]
-fn test_ttyname_invalid_fd() {
- assert_eq!(ttyname(-1), Err(Error::Sys(Errno::ENOTTY)));
-}