Skip to content

Commit 221eac1

Browse files
committed
Reenable tests that only failed on Travis, since we no longer use it.
1 parent 3405a7c commit 221eac1

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

test/sys/test_aio.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ fn test_fsync_error() {
142142
}
143143

144144
#[test]
145-
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)]
146-
// On Travis, aio_suspend hits an assertion within glibc. This is either a bug
147-
// in Travis's version of glibc or Linux. Either way, we must skip the test.
145+
// On Cirrus on Linux, this test fails due to a glibc bug.
148146
// https://github.com/nix-rust/nix/issues/1099
149147
#[cfg_attr(target_os = "linux", ignore)]
150148
// On Cirrus, aio_suspend is failing with EINVAL

test/sys/test_aio_drop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
target_os = "macos",
1010
target_os = "freebsd",
1111
target_os = "netbsd")))]
12-
#[cfg_attr(target_env = "gnu", ignore = "Occasionally fails in Travis; glibc bug suspected")]
1312
fn test_drop() {
1413
use nix::sys::aio::*;
1514
use nix::sys::signal::*;

test/test_fcntl.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,15 @@ mod linux_android {
102102
/// resulting file is read and should contain the contents `bar`.
103103
/// The from_offset should be updated by the call to reflect
104104
/// the 3 bytes read (6).
105-
///
106-
/// FIXME: This test is disabled for linux based builds, because Travis
107-
/// Linux version is too old for `copy_file_range`.
108105
#[test]
109-
#[ignore]
106+
// QEMU does not support copy_file_range. Skip platforms that use QEMU in CI
107+
#[cfg_attr(all(target_os = "linux", any(
108+
target_arch = "aarch64",
109+
target_arch = "arm",
110+
target_arch = "mips",
111+
target_arch = "mips64",
112+
target_arch = "powerpc64"
113+
)), ignore)]
110114
fn test_copy_file_range() {
111115
const CONTENTS: &[u8] = b"foobarbaz";
112116

test/test_ptymaster_drop.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ mod t {
1212
/// race condition.
1313
#[test]
1414
#[should_panic(expected = "Closing an invalid file descriptor!")]
15-
// In Travis on i686-unknown-linux-musl, this test gets SIGABRT. I don't
16-
// know why. It doesn't happen on any other target, and it doesn't happen
17-
// on my PC.
18-
#[cfg_attr(all(target_env = "musl", target_arch = "x86"), ignore)]
1915
fn test_double_close() {
2016
let m = posix_openpt(OFlag::O_RDWR).unwrap();
2117
close(m.as_raw_fd()).unwrap();

0 commit comments

Comments
 (0)