summaryrefslogtreecommitdiff
path: root/test/test_unistd.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-10-19 23:51:55 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-12-21 16:20:48 -0600
commit2eb6e88406f84e6800c4aa26e64fc3b2be8442eb (patch)
treee4dd675b0297e041a8c791a03f5cfef7137360c5 /test/test_unistd.rs
parent4f7119c61da6ab3a11d5e52b5e6cf7105a66efb9 (diff)
downloadnix-2eb6e88406f84e6800c4aa26e64fc3b2be8442eb.zip
DragonFly 6.0 added fexecve(2)
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r--test/test_unistd.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 61062ad2..59ab24e4 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -363,25 +363,21 @@ cfg_if!{
if #[cfg(target_os = "android")] {
execve_test_factory!(test_execve, execve, CString::new("/system/bin/sh").unwrap().as_c_str());
execve_test_factory!(test_fexecve, fexecve, File::open("/system/bin/sh").unwrap().into_raw_fd());
- } else if #[cfg(any(target_os = "freebsd",
+ } else if #[cfg(any(target_os = "dragonfly",
+ target_os = "freebsd",
target_os = "linux"))] {
// These tests frequently fail on musl, probably due to
// https://github.com/nix-rust/nix/issues/555
execve_test_factory!(test_execve, execve, CString::new("/bin/sh").unwrap().as_c_str());
execve_test_factory!(test_fexecve, fexecve, File::open("/bin/sh").unwrap().into_raw_fd());
- } else if #[cfg(any(target_os = "dragonfly",
- target_os = "illumos",
+ } else if #[cfg(any(target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris"))] {
execve_test_factory!(test_execve, execve, CString::new("/bin/sh").unwrap().as_c_str());
- // No fexecve() on DragonFly, ios, macos, NetBSD, OpenBSD.
- //
- // Note for NetBSD and OpenBSD: although rust-lang/libc includes it
- // (under unix/bsd/netbsdlike/) fexecve is not currently implemented on
- // NetBSD nor on OpenBSD.
+ // No fexecve() on ios, macos, NetBSD, OpenBSD.
}
}