mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
ignore win_delete_self test in Miri
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user