Skip to content

Commit

Permalink
Fix invalid cfg flags
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ncMN committed Jun 10, 2022
1 parent c7c220a commit 1fe7ae8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/pass/libc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ fn test_clocks() {
assert_eq!(is_error, 0);
}

#[cfg(target_os = "linux, macos")]
fn test_getpid() {
unsafe {
assert_eq!(libc::getpid(), std::process::id());
Expand Down Expand Up @@ -282,6 +281,5 @@ fn main() {
#[cfg(target_os = "linux")]
test_clocks();

#[cfg(target_os = "linux, macos")]
test_getpid();
}

0 comments on commit 1fe7ae8

Please sign in to comment.