File tree Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,7 @@ fn test_fsync_error() {
142
142
}
143
143
144
144
#[ 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.
148
146
// https://github.com/nix-rust/nix/issues/1099
149
147
#[ cfg_attr( target_os = "linux" , ignore) ]
150
148
// On Cirrus, aio_suspend is failing with EINVAL
Original file line number Diff line number Diff line change 9
9
target_os = "macos" ,
10
10
target_os = "freebsd" ,
11
11
target_os = "netbsd" ) ) ) ]
12
- #[ cfg_attr( target_env = "gnu" , ignore = "Occasionally fails in Travis; glibc bug suspected" ) ]
13
12
fn test_drop ( ) {
14
13
use nix:: sys:: aio:: * ;
15
14
use nix:: sys:: signal:: * ;
Original file line number Diff line number Diff line change @@ -102,11 +102,15 @@ mod linux_android {
102
102
/// resulting file is read and should contain the contents `bar`.
103
103
/// The from_offset should be updated by the call to reflect
104
104
/// 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`.
108
105
#[ 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) ]
110
114
fn test_copy_file_range ( ) {
111
115
const CONTENTS : & [ u8 ] = b"foobarbaz" ;
112
116
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ mod t {
12
12
/// race condition.
13
13
#[ test]
14
14
#[ 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) ]
19
15
fn test_double_close ( ) {
20
16
let m = posix_openpt ( OFlag :: O_RDWR ) . unwrap ( ) ;
21
17
close ( m. as_raw_fd ( ) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments