blob: 1b4e95174664bf55780bc97a473edb377600d757 [file]
#![cfg(windows)]
/// Attempting to delete a running binary should return an error on Windows.
#[test]
#[cfg_attr(skip_unsupported_miri_tests, 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());
}