Fix the getCompilerVersion() function to do the right thing with clang 5.0 which now says "LLVM version" instead of "clang version".
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@176282 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lldbtest.py b/test/lldbtest.py
index d74299f..e62b2b7 100644
--- a/test/lldbtest.py
+++ b/test/lldbtest.py
@@ -1025,7 +1025,7 @@
version_output = system([which(compiler), "-v"])[1]
for line in version_output.split(os.linesep):
compiler_shortname = 'invalid'
- for c in ["clang", "gcc"]:
+ for c in ["clang", "LLVM", "gcc"]:
if c in compiler:
compiler_shortname = c
m = re.search('%s version ([0-9\.]+)' % compiler_shortname, line)