Skip to content

Commit 613239d

Browse files
committed
fix test on Android
1 parent a984163 commit 613239d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_unistd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,13 @@ cfg_if! {
430430
if #[cfg(target_os = "android")] {
431431
use nix::fcntl::AtFlags;
432432
execve_test_factory!(test_execveat_empty, execveat,
433-
File::open("/system/bin/sh").unwrap().into_raw_fd(),
433+
Some(File::open("/system/bin/sh").unwrap().into_raw_fd()),
434434
"", AtFlags::AT_EMPTY_PATH);
435435
execve_test_factory!(test_execveat_relative, execveat,
436-
File::open("/system/bin/").unwrap().into_raw_fd(),
436+
Some(File::open("/system/bin/").unwrap().into_raw_fd()),
437437
"./sh", AtFlags::empty());
438438
execve_test_factory!(test_execveat_absolute, execveat,
439-
File::open("/").unwrap().into_raw_fd(),
439+
Some(File::open("/").unwrap().into_raw_fd()),
440440
"/system/bin/sh", AtFlags::empty());
441441
} else if #[cfg(all(target_os = "linux", any(target_arch ="x86_64", target_arch ="x86")))] {
442442
use nix::fcntl::AtFlags;

0 commit comments

Comments
 (0)