Skip to content

Commit bd7568d

Browse files
committed
Remove unneeded fallback test.
1 parent bd72c4c commit bd7568d

File tree

3 files changed

+8
-25
lines changed

3 files changed

+8
-25
lines changed

bindgen-tests/tests/expectations/tests/libclang-9/macro_fallback_non_system_dir.rs

-1
This file was deleted.

bindgen-tests/tests/tests.rs

+8-24
Original file line numberDiff line numberDiff line change
@@ -584,30 +584,14 @@ fn test_macro_fallback_non_system_dir() {
584584

585585
let actual = format_code(actual).unwrap();
586586

587-
let (expected_filename, expected) = match clang_version().parsed {
588-
Some((9, _)) => {
589-
let expected_filename = concat!(
590-
env!("CARGO_MANIFEST_DIR"),
591-
"/tests/expectations/tests/libclang-9/macro_fallback_non_system_dir.rs",
592-
);
593-
let expected = include_str!(concat!(
594-
env!("CARGO_MANIFEST_DIR"),
595-
"/tests/expectations/tests/libclang-9/macro_fallback_non_system_dir.rs",
596-
));
597-
(expected_filename, expected)
598-
}
599-
_ => {
600-
let expected_filename = concat!(
601-
env!("CARGO_MANIFEST_DIR"),
602-
"/tests/expectations/tests/test_macro_fallback_non_system_dir.rs",
603-
);
604-
let expected = include_str!(concat!(
605-
env!("CARGO_MANIFEST_DIR"),
606-
"/tests/expectations/tests/test_macro_fallback_non_system_dir.rs",
607-
));
608-
(expected_filename, expected)
609-
}
610-
};
587+
let expected_filename = concat!(
588+
env!("CARGO_MANIFEST_DIR"),
589+
"/tests/expectations/tests/macro_fallback_non_system_dir.rs",
590+
);
591+
let expected = include_str!(concat!(
592+
env!("CARGO_MANIFEST_DIR"),
593+
"/tests/expectations/tests/macro_fallback_non_system_dir.rs",
594+
));
611595
let expected = format_code(expected).unwrap();
612596
if expected != actual {
613597
error_diff_mismatch(

0 commit comments

Comments
 (0)