Disable fs-mistrust's simple_cases() unit test on non-Unix.

This patch disables the simple_cases() test on non-Unix platforms and
hides the LinkType type import on non-Unix where we won't be testing
symbolic link features.

See: tpo/core/arti#557.
This commit is contained in:
Alexander Færøy 2022-08-26 21:34:49 +02:00
parent c3928bfe6c
commit 7b5ee8423b
1 changed files with 5 additions and 1 deletions

View File

@ -815,8 +815,12 @@ impl<'a> Verifier<'a> {
mod test {
#![allow(clippy::unwrap_used)]
use super::*;
use testing::{Dir, LinkType};
use testing::Dir;
#[cfg(target_family = "unix")]
use testing::LinkType;
#[cfg(target_family = "unix")]
#[test]
fn simple_cases() {
let d = Dir::new();