From c6cf648b6cd9a5d6a85336ab7dc47388c346e27c Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Thu, 20 Jul 2017 10:44:15 +1000 Subject: Skip no_system_header_includes test for Windows --- tests/tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index 05a39fad..41e8d858 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -7,7 +7,6 @@ use bindgen::{Builder, builder, clang_version}; use std::fs; use std::io::{BufRead, BufReader, Error, ErrorKind, Read, Write}; use std::path::PathBuf; -use std::process::Command; #[path="../src/options.rs"] mod options; @@ -243,7 +242,11 @@ fn test_multiple_header_calls_in_builder() { } #[test] +// Doesn't support executing sh file on Windows. +// We may want to implement it in Rust so that we support all systems. +#[cfg(not(target_os = "windows"))] fn no_system_header_includes() { + use std::process::Command; assert!(Command::new("./ci/no-includes.sh") .current_dir(env!("CARGO_MANIFEST_DIR")) .spawn() -- cgit v1.2.3