summaryrefslogtreecommitdiff
path: root/test/test_unistd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r--test/test_unistd.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index b29ece3e..11e57ff7 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -241,16 +241,17 @@ cfg_if!{
if #[cfg(target_os = "android")] {
execve_test_factory!(test_execve, execve, &CString::new("/system/bin/sh").unwrap());
execve_test_factory!(test_fexecve, fexecve, File::open("/system/bin/sh").unwrap().into_raw_fd());
- } else if #[cfg(any(target_os = "dragonfly",
- target_os = "freebsd",
+ } else if #[cfg(any(target_os = "freebsd",
+ target_os = "linux",
target_os = "netbsd",
- target_os = "openbsd",
- target_os = "linux", ))] {
+ target_os = "openbsd"))] {
execve_test_factory!(test_execve, execve, &CString::new("/bin/sh").unwrap());
execve_test_factory!(test_fexecve, fexecve, File::open("/bin/sh").unwrap().into_raw_fd());
- } else if #[cfg(any(target_os = "ios", target_os = "macos", ))] {
+ } else if #[cfg(any(target_os = "dragonfly",
+ target_os = "ios",
+ target_os = "macos"))] {
execve_test_factory!(test_execve, execve, &CString::new("/bin/sh").unwrap());
- // No fexecve() on macos/ios.
+ // No fexecve() on macos/ios and DragonFly.
}
}