Skip to content

Commit 75f7a11

Browse files
committed
remove restrictions due to stat unavailability
1 parent dbc1189 commit 75f7a11

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/shims/env.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ impl EnvVars {
2020
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
2121
mut excluded_env_vars: Vec<String>,
2222
) {
23-
24-
// FIXME: this can be removed when we have the `stat64` shim for macos.
23+
// FIXME: this can be removed when we fix the behavior of the `close` shim for macos.
2524
if ecx.tcx.sess.target.target.target_os.to_lowercase() != "linux" {
2625
// Exclude `TERM` var to avoid terminfo trying to open the termcap file.
2726
excluded_env_vars.push("TERM".to_owned());

tests/run-pass/fs.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,5 @@ fn main() {
5151
// Removing a non-existing file should fail with a "not found" error.
5252
assert_eq!(ErrorKind::NotFound, remove_file(&path).unwrap_err().kind());
5353
// Reading the metadata of a non-existing file should fail with a "not found" error.
54-
if cfg!(target_os = "linux") { // FIXME: Implement stat64 for macos.
55-
assert_eq!(ErrorKind::NotFound, test_metadata(bytes, &path).unwrap_err().kind());
56-
}
54+
assert_eq!(ErrorKind::NotFound, test_metadata(bytes, &path).unwrap_err().kind());
5755
}

0 commit comments

Comments
 (0)