Skip to content

Commit

Permalink
tests: Guess modern libclang version when we fail to parse a version.
Browse files Browse the repository at this point in the history
Should fix the test failures described in #1991 and #1975 on modern Mac.
  • Loading branch information
emilio committed Feb 15, 2021
1 parent e92dcf2 commit e59aa92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn compare_generated_header(
expectation.push("libclang-3.9");
} else {
match clang_version().parsed {
None => {}
None => expectation.push("libclang-9"),
Some(version) => {
let (maj, min) = version;
let version_str = if maj >= 9 {
Expand Down

0 comments on commit e59aa92

Please sign in to comment.