]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/fs/tests.rs
Rename ErrorKind::Unknown to Uncategorized.
[rust.git] / library / std / src / fs / tests.rs
index 5c969741592e62179b267247b9a2609e0c7cf772..127b7bf34a3dbe30a36ae40a839c5b7f7923de58 100644 (file)
@@ -1329,7 +1329,10 @@ fn metadata_access_times() {
         match (a.created(), b.created()) {
             (Ok(t1), Ok(t2)) => assert!(t1 <= t2),
             (Err(e1), Err(e2))
-                if e1.kind() == ErrorKind::Other && e2.kind() == ErrorKind::Other => {}
+                if e1.kind() == ErrorKind::Uncategorized
+                    && e2.kind() == ErrorKind::Uncategorized
+                    || e1.kind() == ErrorKind::Unsupported
+                        && e2.kind() == ErrorKind::Unsupported => {}
             (a, b) => {
                 panic!("creation time must be always supported or not supported: {:?} {:?}", a, b,)
             }