From 3ffb021e07e8d75c50ac6e5f427f154dc09a7520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 13 Feb 2021 04:41:15 +0100 Subject: [PATCH] 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. --- tests/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index cd621177d6..7bf2c65c4f 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -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 {