ignore win_delete_self test in Miri
This commit is contained in:
parent
d9a4a47b8b
commit
2f3c943f42
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.
|
/// Attempting to delete a running binary should return an error on Windows.
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg_attr(miri, ignore)] // `remove_file` does not work in Miri on Windows
|
||||||
fn win_delete_self() {
|
fn win_delete_self() {
|
||||||
let path = std::env::current_exe().unwrap();
|
let path = std::env::current_exe().unwrap();
|
||||||
assert!(std::fs::remove_file(path).is_err());
|
assert!(std::fs::remove_file(path).is_err());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue