From 9be5e640ffc8ed44cf892aaa0a7ebb589be6abf5 Mon Sep 17 00:00:00 2001 From: Johan Sigfrids Date: Sat, 4 Aug 2018 23:28:39 +0300 Subject: [PATCH] Only test windows path handling on windows. Otherwise Path won't know what to do. --- src/cmd/serve.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index f813241a..3cf5f970 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -398,6 +398,7 @@ mod tests { #[test] + #[cfg(windows)] fn windows_path_handling() { let expected = (ChangeKind::Templates, PathBuf::from("/templates/hello.html")); let pwd = Path::new(r#"C:\\Users\johan\site"#);