Skip to content

Commit eee8ca9

Browse files
committed
Ignore hiberfil_sys test in CI
The file it's testing does not exist in the CI environment.
1 parent 5f5bcb3 commit eee8ca9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/std/src/fs/tests.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1538,11 +1538,14 @@ fn read_large_dir() {
15381538
/// Test the fallback for getting the metadata of files like hiberfil.sys that
15391539
/// Windows holds a special lock on, preventing normal means of querying
15401540
/// metadata. See #96980.
1541+
///
1542+
/// Note this fails in CI because `hiberfil.sys` does not actually exist there.
1543+
/// Therefore it's marked as ignored.
15411544
#[test]
1545+
#[ignore]
15421546
#[cfg(windows)]
15431547
fn hiberfil_sys() {
15441548
let hiberfil = Path::new(r"C:\hiberfil.sys");
1545-
15461549
assert_eq!(true, hiberfil.try_exists().unwrap());
15471550
fs::symlink_metadata(hiberfil).unwrap();
15481551
fs::metadata(hiberfil).unwrap();

0 commit comments

Comments
 (0)