Skip to content

Commit 0895a69

Browse files
committed
Fix test metadata_access_times to also check for Unsupported
1 parent af0dec2 commit 0895a69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/std/src/fs/tests.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,9 @@ fn metadata_access_times() {
13291329
match (a.created(), b.created()) {
13301330
(Ok(t1), Ok(t2)) => assert!(t1 <= t2),
13311331
(Err(e1), Err(e2))
1332-
if e1.kind() == ErrorKind::Other && e2.kind() == ErrorKind::Other => {}
1332+
if e1.kind() == ErrorKind::Other && e2.kind() == ErrorKind::Other
1333+
|| e1.kind() == ErrorKind::Unsupported
1334+
&& e2.kind() == ErrorKind::Unsupported => {}
13331335
(a, b) => {
13341336
panic!("creation time must be always supported or not supported: {:?} {:?}", a, b,)
13351337
}

0 commit comments

Comments
 (0)