Rollup merge of #136805 - RalfJung:miri-win-delete-self, r=Noratrieb
ignore win_delete_self test in Miri Follow-up to https://github.com/rust-lang/rust/pull/134679, fixes miri-test-libstd on Windows Cc `@ChrisDenton` `@Mark-Simulacrum`
This commit is contained in:
commit
ffa8a96040
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue