@@ -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 ( ) ;
@@ -237,7 +244,7 @@ extern fn sigfunc(_: c_int) {
237
244
// Test an aio operation with completion delivered by a signal
238
245
// FIXME: This test is ignored on mips because of failures in qemu in CI
239
246
#[ test]
240
- #[ cfg_attr( target_arch = "mips" , ignore) ]
247
+ #[ cfg_attr( any ( all ( target_env = "musl" , target_arch = "x86_64" ) , target_arch = " mips") , ignore) ]
241
248
fn test_write_sigev_signal ( ) {
242
249
let _ = SIGUSR2_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
243
250
let sa = SigAction :: new ( SigHandler :: Handler ( sigfunc) ,
@@ -278,6 +285,7 @@ fn test_write_sigev_signal() {
278
285
// lio_listio returns.
279
286
#[ test]
280
287
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
288
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
281
289
fn test_lio_listio_wait ( ) {
282
290
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
283
291
const WBUF : & ' static [ u8 ] = b"CDEF" ;
@@ -320,6 +328,7 @@ fn test_lio_listio_wait() {
320
328
// mechanism to check for the individual AioCb's completion.
321
329
#[ test]
322
330
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
331
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
323
332
fn test_lio_listio_nowait ( ) {
324
333
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
325
334
const WBUF : & ' static [ u8 ] = b"CDEF" ;
@@ -365,7 +374,7 @@ fn test_lio_listio_nowait() {
365
374
// FIXME: This test is ignored on mips because of failures in qemu in CI.
366
375
#[ test]
367
376
#[ cfg( not( any( target_os = "ios" , target_os = "macos" ) ) ) ]
368
- #[ cfg_attr( target_arch = "mips" , ignore) ]
377
+ #[ cfg_attr( any ( target_arch = "mips" , target_env = "musl" ) , ignore) ]
369
378
fn test_lio_listio_signal ( ) {
370
379
let _ = SIGUSR2_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
371
380
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
@@ -438,6 +447,7 @@ fn test_lio_listio_read_immutable() {
438
447
// Test dropping an AioCb that hasn't yet finished. Behind the scenes, the
439
448
// library should wait for the AioCb's completion.
440
449
#[ test]
450
+ #[ cfg_attr( all( target_env = "musl" , target_arch = "x86_64" ) , ignore) ]
441
451
fn test_drop ( ) {
442
452
const INITIAL : & ' static [ u8 ] = b"abcdef123456" ;
443
453
const WBUF : & ' static [ u8 ] = b"CDEF" ; //"CDEF".to_string().into_bytes();
0 commit comments