@@ -335,11 +335,17 @@ macro_rules! execve_test_factory(
335
335
}
336
336
}
337
337
338
+ // These tests frequently fail on musl, probably due to
339
+ // https://github.com/nix-rust/nix/issues/555
340
+ #[ cfg_attr( target_env = "musl" , ignore) ]
338
341
#[ test]
339
342
fn test_cstr_ref( ) {
340
343
common_test( syscall_cstr_ref) ;
341
344
}
342
345
346
+ // These tests frequently fail on musl, probably due to
347
+ // https://github.com/nix-rust/nix/issues/555
348
+ #[ cfg_attr( target_env = "musl" , ignore) ]
343
349
#[ test]
344
350
fn test_cstring( ) {
345
351
common_test( syscall_cstring) ;
@@ -355,6 +361,8 @@ cfg_if!{
355
361
execve_test_factory!( test_fexecve, fexecve, File :: open( "/system/bin/sh" ) . unwrap( ) . into_raw_fd( ) ) ;
356
362
} else if #[ cfg( any( target_os = "freebsd" ,
357
363
target_os = "linux" ) ) ] {
364
+ // These tests frequently fail on musl, probably due to
365
+ // https://github.com/nix-rust/nix/issues/555
358
366
execve_test_factory!( test_execve, execve, CString :: new( "/bin/sh" ) . unwrap( ) . as_c_str( ) ) ;
359
367
execve_test_factory!( test_fexecve, fexecve, File :: open( "/bin/sh" ) . unwrap( ) . into_raw_fd( ) ) ;
360
368
} else if #[ cfg( any( target_os = "dragonfly" ,
@@ -377,11 +385,14 @@ execve_test_factory!(test_execvpe, execvpe, &CString::new("sh").unwrap());
377
385
cfg_if ! {
378
386
if #[ cfg( target_os = "android" ) ] {
379
387
use nix:: fcntl:: AtFlags ;
380
- execve_test_factory!( test_execveat_empty, execveat, File :: open( "/system/bin/sh" ) . unwrap( ) . into_raw_fd( ) ,
388
+ execve_test_factory!( test_execveat_empty, execveat,
389
+ File :: open( "/system/bin/sh" ) . unwrap( ) . into_raw_fd( ) ,
381
390
"" , AtFlags :: AT_EMPTY_PATH ) ;
382
- execve_test_factory!( test_execveat_relative, execveat, File :: open( "/system/bin/" ) . unwrap( ) . into_raw_fd( ) ,
391
+ execve_test_factory!( test_execveat_relative, execveat,
392
+ File :: open( "/system/bin/" ) . unwrap( ) . into_raw_fd( ) ,
383
393
"./sh" , AtFlags :: empty( ) ) ;
384
- execve_test_factory!( test_execveat_absolute, execveat, File :: open( "/" ) . unwrap( ) . into_raw_fd( ) ,
394
+ execve_test_factory!( test_execveat_absolute, execveat,
395
+ File :: open( "/" ) . unwrap( ) . into_raw_fd( ) ,
385
396
"/system/bin/sh" , AtFlags :: empty( ) ) ;
386
397
} else if #[ cfg( all( target_os = "linux" , any( target_arch ="x86_64" , target_arch ="x86" ) ) ) ] {
387
398
use nix:: fcntl:: AtFlags ;
0 commit comments