Skip to content

Commit

Permalink
Fix test failures on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Sep 26, 2023
1 parent d03c9ba commit 45cf6cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fs_without_landlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const ARCH: TargetArch = TargetArch::x86_64;
#[cfg(target_arch = "aarch64")]
const ARCH: TargetArch = TargetArch::aarch64;

#[cfg(target_os = "linux")]
fn main() {
const FILE_CONTENT: &str = "expected content";

Expand Down Expand Up @@ -52,3 +53,6 @@ fn main() {
let result = fs::read_to_string(private_path);
assert!(result.is_err());
}

#[cfg(not(target_os = "linux"))]
fn main() {}

0 comments on commit 45cf6cc

Please sign in to comment.