From 470e24b683bd713f205aa2f7be30af467f248bb2 Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 25 Oct 2020 21:06:37 +0000 Subject: [PATCH] fix wsl tests --- tests/integration.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 6985776..46c53aa 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -103,10 +103,10 @@ fn test_list_inode_populated_directory() { dir.child("one").touch().unwrap(); dir.child("two").touch().unwrap(); - #[cfg(unix)] - let matched = "\\d+ one\n\\d+ two\n$"; #[cfg(windows)] let matched = "- one\n\\- two\n$"; + #[cfg(unix)] + let matched = "\\d+ one\n\\d+ two\n$"; cmd() .arg("--inode") @@ -128,9 +128,6 @@ fn test_list_block_inode_populated_directory_without_long() { dir.child("one").touch().unwrap(); dir.child("two").touch().unwrap(); - #[cfg(unix)] - let matched = "one\ntwo\n$"; - #[cfg(windows)] let matched = "one\ntwo\n$"; cmd() @@ -148,10 +145,10 @@ fn test_list_block_inode_populated_directory_with_long() { dir.child("one").touch().unwrap(); dir.child("two").touch().unwrap(); - #[cfg(unix)] - let matched = "\\d+ one\n\\d+ two\n$"; #[cfg(windows)] let matched = "- one\n\\- two\n$"; + #[cfg(unix)] + let matched = "\\d+ one\n\\d+ two\n$"; cmd() .arg("--long")