Skip to content

Commit e59aa92

Browse files
committed
tests: Guess modern libclang version when we fail to parse a version.
Should fix the test failures described in #1991 and #1975 on modern Mac.
1 parent e92dcf2 commit e59aa92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn compare_generated_header(
146146
expectation.push("libclang-3.9");
147147
} else {
148148
match clang_version().parsed {
149-
None => {}
149+
None => expectation.push("libclang-9"),
150150
Some(version) => {
151151
let (maj, min) = version;
152152
let version_str = if maj >= 9 {

0 commit comments

Comments
 (0)