about summary refs log tree commit diff
path: root/library/std/tests/win_delete_self.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/tests/win_delete_self.rs')
-rw-r--r--library/std/tests/win_delete_self.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/tests/win_delete_self.rs b/library/std/tests/win_delete_self.rs
index 1c3ce4d710c..ce505de69a2 100644
--- a/library/std/tests/win_delete_self.rs
+++ b/library/std/tests/win_delete_self.rs
@@ -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());