Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ffa8a96

Browse files
authoredFeb 10, 2025
Rollup merge of #136805 - RalfJung:miri-win-delete-self, r=Noratrieb
ignore win_delete_self test in Miri Follow-up to #134679, fixes miri-test-libstd on Windows Cc `@ChrisDenton` `@Mark-Simulacrum`
2 parents 3e5f489 + 2f3c943 commit ffa8a96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎library/std/tests/win_delete_self.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

0 commit comments

Comments
 (0)
Failed to load comments.