about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2022-07-18 15:06:07 +0100
committerChris Denton <christophersdenton@gmail.com>2022-07-18 15:06:07 +0100
commiteee8ca9a44e89d56ed63cf5a76de64cc6cb23c23 (patch)
treef7d53f61b55b3d7178abc6db25e4ebc6a42b91ba
parent5f5bcb369730a1095d44adc9843ec80cfddea443 (diff)
downloadrust-eee8ca9a44e89d56ed63cf5a76de64cc6cb23c23.tar.gz
rust-eee8ca9a44e89d56ed63cf5a76de64cc6cb23c23.zip
Ignore `hiberfil_sys` test in CI
The file it's testing does not exist in the CI environment.
-rw-r--r--library/std/src/fs/tests.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/std/src/fs/tests.rs b/library/std/src/fs/tests.rs
index d8806b6ec60..b8959316de1 100644
--- a/library/std/src/fs/tests.rs
+++ b/library/std/src/fs/tests.rs
@@ -1538,11 +1538,14 @@ fn read_large_dir() {
 /// Test the fallback for getting the metadata of files like hiberfil.sys that
 /// Windows holds a special lock on, preventing normal means of querying
 /// metadata. See #96980.
+///
+/// Note this fails in CI because `hiberfil.sys` does not actually exist there.
+/// Therefore it's marked as ignored.
 #[test]
+#[ignore]
 #[cfg(windows)]
 fn hiberfil_sys() {
     let hiberfil = Path::new(r"C:\hiberfil.sys");
-
     assert_eq!(true, hiberfil.try_exists().unwrap());
     fs::symlink_metadata(hiberfil).unwrap();
     fs::metadata(hiberfil).unwrap();