From 3e592cbc0916e0680c757dd3040cfade1081f164 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Sat, 6 Nov 2021 16:27:16 +0000 Subject: [PATCH] Tests: Fix test on mac (hack) For some unknown reason mac takes offence to searching for 'test_dir_unicode'. 'test_dir_hidden' seems to work fine. This isn't a proper fix as I've just hacked round the problem. Ideally I'd need a mac user to do some investigation. --- tests/test_flags.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_flags.rs b/tests/test_flags.rs index 10dd3d92..981c358d 100644 --- a/tests/test_flags.rs +++ b/tests/test_flags.rs @@ -128,14 +128,12 @@ pub fn test_show_files_by_regex_match_nothing() { assert!(output.contains("0B ┌── tests")); } -#[cfg_attr(target_os = "windows", ignore)] -#[cfg_attr(target_os = "macos", ignore)] // TODO: Figure out why mac doesnt like this test #[test] pub fn test_show_files_by_regex_match_multiple() { let output = build_command(vec![ "-c", "-e", - "test_dir_unicode", + "test_dir_hidden", "-e", "test_dir2", "-n", @@ -143,7 +141,7 @@ pub fn test_show_files_by_regex_match_multiple() { "tests", ]); assert!(output.contains("test_dir2")); - assert!(output.contains("test_dir_unicode")); + assert!(output.contains("test_dir_hidden")); assert!(!output.contains("many")); // We do not find the 'many' folder in the 'test_dir' folder }