@@ -363,25 +363,21 @@ cfg_if!{
363
363
if #[ cfg( target_os = "android" ) ] {
364
364
execve_test_factory!( test_execve, execve, CString :: new( "/system/bin/sh" ) . unwrap( ) . as_c_str( ) ) ;
365
365
execve_test_factory!( test_fexecve, fexecve, File :: open( "/system/bin/sh" ) . unwrap( ) . into_raw_fd( ) ) ;
366
- } else if #[ cfg( any( target_os = "freebsd" ,
366
+ } else if #[ cfg( any( target_os = "dragonfly" ,
367
+ target_os = "freebsd" ,
367
368
target_os = "linux" ) ) ] {
368
369
// These tests frequently fail on musl, probably due to
369
370
// https://github.com/nix-rust/nix/issues/555
370
371
execve_test_factory!( test_execve, execve, CString :: new( "/bin/sh" ) . unwrap( ) . as_c_str( ) ) ;
371
372
execve_test_factory!( test_fexecve, fexecve, File :: open( "/bin/sh" ) . unwrap( ) . into_raw_fd( ) ) ;
372
- } else if #[ cfg( any( target_os = "dragonfly" ,
373
- target_os = "illumos" ,
373
+ } else if #[ cfg( any( target_os = "illumos" ,
374
374
target_os = "ios" ,
375
375
target_os = "macos" ,
376
376
target_os = "netbsd" ,
377
377
target_os = "openbsd" ,
378
378
target_os = "solaris" ) ) ] {
379
379
execve_test_factory!( test_execve, execve, CString :: new( "/bin/sh" ) . unwrap( ) . as_c_str( ) ) ;
380
- // No fexecve() on DragonFly, ios, macos, NetBSD, OpenBSD.
381
- //
382
- // Note for NetBSD and OpenBSD: although rust-lang/libc includes it
383
- // (under unix/bsd/netbsdlike/) fexecve is not currently implemented on
384
- // NetBSD nor on OpenBSD.
380
+ // No fexecve() on ios, macos, NetBSD, OpenBSD.
385
381
}
386
382
}
387
383
0 commit comments