diff --git a/tests/expectations/both/pragma_once.h b/tests/expectations/both/pragma_once.c similarity index 100% rename from tests/expectations/both/pragma_once.h rename to tests/expectations/both/pragma_once.c diff --git a/tests/expectations/both/pragma_once.compat.h b/tests/expectations/both/pragma_once.compat.c similarity index 100% rename from tests/expectations/both/pragma_once.compat.h rename to tests/expectations/both/pragma_once.compat.c diff --git a/tests/expectations/pragma_once.h b/tests/expectations/pragma_once.c similarity index 100% rename from tests/expectations/pragma_once.h rename to tests/expectations/pragma_once.c diff --git a/tests/expectations/pragma_once.compat.h b/tests/expectations/pragma_once.compat.c similarity index 100% rename from tests/expectations/pragma_once.compat.h rename to tests/expectations/pragma_once.compat.c diff --git a/tests/expectations/pragma_once.hpp b/tests/expectations/pragma_once.cpp similarity index 100% rename from tests/expectations/pragma_once.hpp rename to tests/expectations/pragma_once.cpp diff --git a/tests/expectations/tag/pragma_once.h b/tests/expectations/tag/pragma_once.c similarity index 100% rename from tests/expectations/tag/pragma_once.h rename to tests/expectations/tag/pragma_once.c diff --git a/tests/expectations/tag/pragma_once.compat.h b/tests/expectations/tag/pragma_once.compat.c similarity index 100% rename from tests/expectations/tag/pragma_once.compat.h rename to tests/expectations/tag/pragma_once.compat.c diff --git a/tests/rust/pragma_once.header.rs b/tests/rust/pragma_once.skip_warning_as_error.rs similarity index 100% rename from tests/rust/pragma_once.header.rs rename to tests/rust/pragma_once.skip_warning_as_error.rs diff --git a/tests/rust/pragma_once.header.toml b/tests/rust/pragma_once.skip_warning_as_error.toml similarity index 100% rename from tests/rust/pragma_once.header.toml rename to tests/rust/pragma_once.skip_warning_as_error.toml diff --git a/tests/tests.rs b/tests/tests.rs index 7bf58e4..0dfef50 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,8 +1,7 @@ extern crate cbindgen; use cbindgen::*; -use std::io::Write; -use std::path::{Path, PathBuf}; +use std::path::Path; use std::process::Command; use std::{env, fs, str}; @@ -69,6 +68,7 @@ fn compile( tmp_dir: &Path, language: Language, style: Option