about summary refs log tree commit diff homepage
path: root/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 037cbf37..25061a68 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -158,6 +158,11 @@ config.substitutions.append(
 known_llvm_versions = set(["3.8", "3.9", "4.0", "5.0", "6.0", "7.0", "8.0"])
 current_llvm_version = "%s.%s" % (config.llvm_version_major,
                                   config.llvm_version_minor)
+
+if current_llvm_version not in known_llvm_versions:
+  lit_config.fatal("LLVM Version %s is not listed in known_llvm_versions!"
+                   % current_llvm_version)
+
 config.available_features.add("llvm-" + current_llvm_version)
 for version in known_llvm_versions:
   if version != current_llvm_version: