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.
This commit is contained in:
Emilio Cobos Álvarez 2021-02-13 04:41:15 +01:00
parent e92dcf2a3f
commit e59aa9218b

View File

@ -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 {