Skip to content

Commit

Permalink
Rollup merge of rust-lang#136805 - RalfJung:miri-win-delete-self, r=N…
Browse files Browse the repository at this point in the history
…oratrieb

ignore win_delete_self test in Miri

Follow-up to rust-lang#134679, fixes miri-test-libstd on Windows

Cc `@ChrisDenton` `@Mark-Simulacrum`
  • Loading branch information
workingjubilee authored Feb 10, 2025
2 parents 3e5f489 + 2f3c943 commit ffa8a96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/tests/win_delete_self.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/// Attempting to delete a running binary should return an error on Windows.
#[test]
#[cfg_attr(miri, ignore)] // `remove_file` does not work in Miri on Windows
fn win_delete_self() {
let path = std::env::current_exe().unwrap();
assert!(std::fs::remove_file(path).is_err());
Expand Down

0 comments on commit ffa8a96

Please sign in to comment.