Skip to content

Commit

Permalink
Unrolled build for rust-lang#136805
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#136805 - RalfJung:miri-win-delete-self, r=Noratrieb

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
rust-timer authored Feb 10, 2025
2 parents 80c0919 + 2f3c943 commit 2b1fa66
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 2b1fa66

Please sign in to comment.