summaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-10-11 15:55:00 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-10-14 14:15:46 +0200
commitcd4f0043fb7d9af8e4896526eba8bd6fdcb0452d (patch)
tree4a5811fdc559520a37720e66e296387e00c25be8 /tests/tests.rs
parent5591a103551080ba599b0809458ced65c5633bff (diff)
Add llvm 9.0 to CI.
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 6046cd83..f0fc9ff6 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -117,10 +117,12 @@ fn compare_generated_header(header: &PathBuf, builder: Builder) -> Result<(), Er
{
let mut expectation = expectation.clone();
- if cfg!(feature = "testing_only_libclang_4") {
- expectation.push("libclang-4");
+ if cfg!(feature = "testing_only_libclang_9") {
+ expectation.push("libclang-9");
} else if cfg!(feature = "testing_only_libclang_5") {
expectation.push("libclang-5");
+ } else if cfg!(feature = "testing_only_libclang_4") {
+ expectation.push("libclang-4");
} else if cfg!(feature = "testing_only_libclang_3_9") {
expectation.push("libclang-3.9");
} else if cfg!(feature = "testing_only_libclang_3_8") {
@@ -134,7 +136,7 @@ fn compare_generated_header(header: &PathBuf, builder: Builder) -> Result<(), Er
"9".to_owned()
} else if maj >= 5 {
"5".to_owned()
- } else if maj == 4 {
+ } else if maj >= 4 {
"4".to_owned()
} else {
format!("{}.{}", maj, min)