Skip to content

Commit

Permalink
ignore win_delete_self test in Miri
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 10, 2025
1 parent d9a4a47 commit 2f3c943
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 2f3c943

Please sign in to comment.