@@ -26,6 +26,7 @@ fn poll_aio(mut aiocb: &mut AioCb) -> Result<()> {
26
26
// bindings. So it's sufficient to check that AioCb.cancel returned any
27
27
// AioCancelStat value.
28
28
#[ test]
29
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
29
30
fn test_cancel ( ) {
30
31
let wbuf: & ' static [ u8 ] = b"CDEF" ;
31
32
@@ -50,6 +51,7 @@ fn test_cancel() {
50
51
51
52
// Tests using aio_cancel_all for all outstanding IOs.
52
53
#[ test]
54
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
53
55
fn test_aio_cancel_all ( ) {
54
56
let wbuf: & ' static [ u8 ] = b"CDEF" ;
55
57
@@ -73,6 +75,7 @@ fn test_aio_cancel_all() {
73
75
}
74
76
75
77
#[ test]
78
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
76
79
fn test_fsync ( ) {
77
80
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
78
81
let mut f = tempfile ( ) . unwrap ( ) ;
@@ -88,6 +91,7 @@ fn test_fsync() {
88
91
89
92
90
93
#[ test]
94
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
91
95
fn test_aio_suspend ( ) {
92
96
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
93
97
const WBUF : & ' static [ u8 ] = b"CDEF" ;
@@ -129,6 +133,7 @@ fn test_aio_suspend() {
129
133
// Test a simple aio operation with no completion notification. We must poll
130
134
// for completion
131
135
#[ test]
136
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
132
137
fn test_read ( ) {
133
138
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
134
139
let rbuf = Rc :: new ( vec ! [ 0 ; 4 ] . into_boxed_slice ( ) ) ;
@@ -154,6 +159,7 @@ fn test_read() {
154
159
155
160
// Tests from_mut_slice
156
161
#[ test]
162
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
157
163
fn test_read_into_mut_slice ( ) {
158
164
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
159
165
let mut rbuf = vec ! [ 0 ; 4 ] ;
@@ -198,6 +204,7 @@ fn test_read_immutable_buffer() {
198
204
// Test a simple aio operation with no completion notification. We must poll
199
205
// for completion. Unlike test_aio_read, this test uses AioCb::from_slice
200
206
#[ test]
207
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
201
208
fn test_write ( ) {
202
209
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
203
210
let wbuf = "CDEF" . to_string ( ) . into_bytes ( ) ;
@@ -236,6 +243,7 @@ extern fn sigfunc(_: c_int) {
236
243
237
244
// Test an aio operation with completion delivered by a signal
238
245
#[ test]
246
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
239
247
fn test_write_sigev_signal ( ) {
240
248
let _ = SIGUSR2_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
241
249
let sa = SigAction :: new ( SigHandler :: Handler ( sigfunc) ,
@@ -276,6 +284,7 @@ fn test_write_sigev_signal() {
276
284
// lio_listio returns.
277
285
#[ test]
278
286
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
287
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
279
288
fn test_lio_listio_wait ( ) {
280
289
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
281
290
const WBUF : & ' static [ u8 ] = b"CDEF" ;
@@ -318,6 +327,7 @@ fn test_lio_listio_wait() {
318
327
// mechanism to check for the individual AioCb's completion.
319
328
#[ test]
320
329
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
330
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
321
331
fn test_lio_listio_nowait ( ) {
322
332
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
323
333
const WBUF : & ' static [ u8 ] = b"CDEF" ;
@@ -363,7 +373,7 @@ fn test_lio_listio_nowait() {
363
373
// FIXME: This test is ignored on mips because of failures in qemu in CI
364
374
#[ test]
365
375
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
366
- #[ cfg_attr( all( target_arch = "mips" , travis) , ignore) ]
376
+ #[ cfg_attr( any ( all( target_arch = "mips" , travis) , target_env = "musl" ) , ignore) ]
367
377
fn test_lio_listio_signal ( ) {
368
378
let _ = SIGUSR2_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
369
379
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
@@ -436,6 +446,7 @@ fn test_lio_listio_read_immutable() {
436
446
// Test dropping an AioCb that hasn't yet finished. Behind the scenes, the
437
447
// library should wait for the AioCb's completion.
438
448
#[ test]
449
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
439
450
fn test_drop ( ) {
440
451
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
441
452
const WBUF : & ' static [ u8 ] = b"CDEF" ; //"CDEF".to_string().into_bytes();
0 commit comments