diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-08-06 20:51:41 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-08-06 20:51:41 +0000 |
commit | e0d9e7543b684ffedabc9b39f4e4910eb975099e (patch) | |
tree | 8b82df1c7856ff37ea4b659be34ac9a00baaefdc /test/lldbtest.py | |
parent | 31cdd3d8545077cd5cdb6873bf005508a1570d38 (diff) | |
download | lldb-e0d9e7543b684ffedabc9b39f4e4910eb975099e.tar.gz |
Centralizing Intel compiler detection logic in lldbtest.py to avoid duplication in the future.
- Addresses review comments from Stefanus!
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lldbtest.py')
-rw-r--r-- | test/lldbtest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lldbtest.py b/test/lldbtest.py index 32d51b7b1..c6fb79860 100644 --- a/test/lldbtest.py +++ b/test/lldbtest.py @@ -1255,6 +1255,10 @@ class Base(unittest2.TestCase): version = m.group(1) return version + def isIntelCompiler(self): + """ Returns true if using an Intel (ICC) compiler, false otherwise. """ + return any([x in self.getCompiler() for x in ["icc", "icpc", "icl"]]) + def expectedCompilerVersion(self, compiler_version): """Returns True iff compiler_version[1] matches the current compiler version. Use compiler_version[0] to specify the operator used to determine if a match has occurred. |