@@ -363,25 +363,21 @@ cfg_if!{
363363 if #[ cfg( target_os = "android" ) ] {
364364 execve_test_factory!( test_execve, execve, CString :: new( "/system/bin/sh" ) . unwrap( ) . as_c_str( ) ) ;
365365 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" ,
367368 target_os = "linux" ) ) ] {
368369 // These tests frequently fail on musl, probably due to
369370 // https://github.com/nix-rust/nix/issues/555
370371 execve_test_factory!( test_execve, execve, CString :: new( "/bin/sh" ) . unwrap( ) . as_c_str( ) ) ;
371372 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" ,
374374 target_os = "ios" ,
375375 target_os = "macos" ,
376376 target_os = "netbsd" ,
377377 target_os = "openbsd" ,
378378 target_os = "solaris" ) ) ] {
379379 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.
385381 }
386382}
387383
0 commit comments