From 038f318ad35a49d952897c34e77e70e14702a92b Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 2 Feb 2019 23:30:23 -0500 Subject: [PATCH] Tests compile on Windows Just shut off a bunch of test sections. Probably most can remain as long as some of them get broken out into separate unix-only test sections. --- src/icon.rs | 2 +- src/meta/date.rs | 2 +- src/meta/filetype.rs | 2 +- src/meta/name.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/icon.rs b/src/icon.rs index 54121f6..0bb404e 100644 --- a/src/icon.rs +++ b/src/icon.rs @@ -305,7 +305,7 @@ impl Icons { } } -#[cfg(test)] +#[cfg(all(test,unix))] mod test { use super::{Icons, Theme, ICON_SPACE}; use crate::meta::{FileType, Name, Permissions}; diff --git a/src/meta/date.rs b/src/meta/date.rs index 73586a6..b667e51 100644 --- a/src/meta/date.rs +++ b/src/meta/date.rs @@ -55,7 +55,7 @@ impl Date { } } -#[cfg(test)] +#[cfg(all(test, unix))] mod test { use super::Date; use crate::color::{Colors, Theme}; diff --git a/src/meta/filetype.rs b/src/meta/filetype.rs index ba9d5ab..e8adf1f 100644 --- a/src/meta/filetype.rs +++ b/src/meta/filetype.rs @@ -70,7 +70,7 @@ impl FileType { } } -#[cfg(test)] +#[cfg(all(test, unix))] mod test { use super::FileType; use crate::color::{Colors, Theme}; diff --git a/src/meta/name.rs b/src/meta/name.rs index d805cb8..7c7f3a9 100644 --- a/src/meta/name.rs +++ b/src/meta/name.rs @@ -90,7 +90,7 @@ impl PartialEq for Name { } } -#[cfg(test)] +#[cfg(all(test, unix))] mod test { use super::Name; use crate::color::{self, Colors};