From 3bf7fa00fbd56982334bd61f86e98271ade9f1a0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 8 Jan 2019 16:20:36 +0100 Subject: [PATCH] fix tests for windows --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c4a9b50..7a9fbc6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,6 +52,7 @@ fn func1() -> Result<(), Box> { fn main() { if let Err(e) = func1() { + #[cfg(not(windows))] assert_eq!( format!("\n{:?}\n", e), r#" src/lib.rs:20: func1 error @@ -149,6 +150,7 @@ fn main() { eprintln!("\nThe root cause was: std::io::Error: {:#?}", ioerror); } + #[cfg(not(windows))] assert_eq!( format!("\n{:?}\n", e), r#" src/lib.rs:47: func1 error calling func2 @@ -696,6 +698,7 @@ fn func1() -> Result<(), Box> { # fn main() { # if let Err(e) = func1() { +# #[cfg(not(windows))] # assert_eq!( # format!("\n{:?}\n", e), r#" # src/lib.rs:20: func1 error