Skip to content

Commit 80497e5

Browse files
committed
Clean up conditional compilation
1 parent 0f5f0e1 commit 80497e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run-pass/libc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn tmp() -> PathBuf {
1212
std::env::var("MIRI_TEMP").map(PathBuf::from).unwrap_or_else(|_| std::env::temp_dir())
1313
}
1414

15-
#[cfg(not(target_os = "macos"))]
15+
#[cfg(target_os = "linux")]
1616
fn test_posix_fadvise() {
1717
use std::convert::TryInto;
1818
use std::fs::{remove_file, File};
@@ -144,7 +144,7 @@ fn test_rwlock_libc_static_initializer() {
144144
}
145145

146146
fn main() {
147-
#[cfg(not(target_os = "macos"))]
147+
#[cfg(target_os = "linux")]
148148
test_posix_fadvise();
149149

150150
test_mutex_libc_init_recursive();

0 commit comments

Comments
 (0)