diff --git a/tauri-api/src/command.rs b/tauri-api/src/command.rs index f9ac39806..e4083efea 100644 --- a/tauri-api/src/command.rs +++ b/tauri-api/src/command.rs @@ -93,9 +93,9 @@ pub fn binary_command(binary_name: String) -> crate::Result { #[cfg(test)] mod test { use super::*; - use crate::Error; use std::io; + #[cfg(not(windows))] #[test] // test the get_output function with a unix cat command. fn test_cmd_output() { @@ -115,9 +115,12 @@ mod test { } } + #[cfg(not(windows))] #[test] // test the failure case for get_output fn test_cmd_fail() { + use crate::Error; + // queue up a string with cat in it. let cmd = String::from("cat");