From 749ada608e23abb435e08f30667d3bd221c227a6 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 11 Sep 2019 04:16:30 +0100 Subject: [PATCH] Don't test resolve_from_cwd_absolute() on Windows (#2911) --- cli/fs.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cli/fs.rs b/cli/fs.rs index d831d44c0d..19c76415c5 100644 --- a/cli/fs.rs +++ b/cli/fs.rs @@ -182,13 +182,11 @@ mod tests { assert_eq!(resolve_from_cwd("a/..").unwrap().0, cwd); } + // TODO: Get a good expected value here for Windows. + #[cfg(not(windows))] #[test] fn resolve_from_cwd_absolute() { - let expected = if cfg!(windows) { - Path::new("C:\\a") - } else { - Path::new("/a") - }; + let expected = Path::new("/a"); assert_eq!(resolve_from_cwd("/a").unwrap().0, expected); } }