File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ impl EnvVars {
20
20
ecx : & mut InterpCx < ' mir , ' tcx , Evaluator < ' tcx > > ,
21
21
mut excluded_env_vars : Vec < String > ,
22
22
) {
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.
25
24
if ecx. tcx . sess . target . target . target_os . to_lowercase ( ) != "linux" {
26
25
// Exclude `TERM` var to avoid terminfo trying to open the termcap file.
27
26
excluded_env_vars. push ( "TERM" . to_owned ( ) ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,5 @@ fn main() {
51
51
// Removing a non-existing file should fail with a "not found" error.
52
52
assert_eq ! ( ErrorKind :: NotFound , remove_file( & path) . unwrap_err( ) . kind( ) ) ;
53
53
// 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( ) ) ;
57
55
}
You can’t perform that action at this time.
0 commit comments