diff options
author | Nitesh Jain <nitesh.jain@imgtec.com> | 2017-02-08 07:42:56 +0000 |
---|---|---|
committer | Nitesh Jain <nitesh.jain@imgtec.com> | 2017-02-08 07:42:56 +0000 |
commit | 8493e6a88983ba6ef29cf249a7ac0e497aef6c4c (patch) | |
tree | 659e2d85f61f2a09334573c15f2791a1ec4a0614 /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
parent | a2e54b632e27bf20cfb9c220d7c379320d49e67d (diff) | |
download | bcm5719-llvm-8493e6a88983ba6ef29cf249a7ac0e497aef6c4c.tar.gz bcm5719-llvm-8493e6a88983ba6ef29cf249a7ac0e497aef6c4c.zip |
[LLDB][MIPS] Fix TestMiExec and TestMiData failures
Subscribers: jaydeep, bhushan, lldb-commits, slthakur
llvm-svn: 294418
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index ba41d5d3191..f4f12a76a3b 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1227,6 +1227,13 @@ class Base(unittest2.TestCase): # (enables reading of the current test configuration) # ==================================================== + def isMIPS(self): + """Returns true if the architecture is MIPS.""" + arch = self.getArchitecture() + if re.match("mips", arch): + return True + return False + def getArchitecture(self): """Returns the architecture in effect the test suite is running with.""" module = builder_module() |