diff options
author | Xidorn Quan <me@upsuper.org> | 2017-07-20 10:44:15 +1000 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2017-07-20 10:46:34 +1000 |
commit | c6cf648b6cd9a5d6a85336ab7dc47388c346e27c (patch) | |
tree | d366d232e2c06e212542bb5112c2bd435052c7d2 /tests | |
parent | c4fdff85a841ed6459b7b611f129a74b0728a376 (diff) |
Skip no_system_header_includes test for Windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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() |