summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorNitesh Jain <nitesh.jain@imgtec.com>2017-02-08 07:42:56 +0000
committerNitesh Jain <nitesh.jain@imgtec.com>2017-02-08 07:42:56 +0000
commit8493e6a88983ba6ef29cf249a7ac0e497aef6c4c (patch)
tree659e2d85f61f2a09334573c15f2791a1ec4a0614 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parenta2e54b632e27bf20cfb9c220d7c379320d49e67d (diff)
downloadbcm5719-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.py7
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()
OpenPOWER on IntegriCloud