Skip to content

Commit c6cf648

Browse files
committed
Skip no_system_header_includes test for Windows
1 parent c4fdff8 commit c6cf648

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use bindgen::{Builder, builder, clang_version};
77
use std::fs;
88
use std::io::{BufRead, BufReader, Error, ErrorKind, Read, Write};
99
use std::path::PathBuf;
10-
use std::process::Command;
1110

1211
#[path="../src/options.rs"]
1312
mod options;
@@ -243,7 +242,11 @@ fn test_multiple_header_calls_in_builder() {
243242
}
244243

245244
#[test]
245+
// Doesn't support executing sh file on Windows.
246+
// We may want to implement it in Rust so that we support all systems.
247+
#[cfg(not(target_os = "windows"))]
246248
fn no_system_header_includes() {
249+
use std::process::Command;
247250
assert!(Command::new("./ci/no-includes.sh")
248251
.current_dir(env!("CARGO_MANIFEST_DIR"))
249252
.spawn()

0 commit comments

Comments
 (0)