From 588888112a7eadf0afaf1810278b41e9e2f0fa87 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 15 Sep 2019 15:51:18 +0200 Subject: [PATCH] Adapt full-path glob test for Windows --- tests/tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index 32dc7f4..e77f665 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -273,8 +273,14 @@ fn test_glob_searches() { fn test_full_path_glob_searches() { let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES); + #[cfg(not(windows))] + let pattern = "**/one/**/*.foo"; + + #[cfg(windows)] + let pattern = "**\\one\\**\\*.foo"; + te.assert_output( - &["--glob", "--full-path", "**/one/**/*.foo"], + &["--glob", "--full-path", pattern], "one/b.foo one/two/c.foo one/two/three/d.foo",