summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorNitesh Jain <nitesh.jain@imgtec.com>2017-02-08 07:29:24 +0000
committerNitesh Jain <nitesh.jain@imgtec.com>2017-02-08 07:29:24 +0000
commitc12d82ba2dfba2290ba6ffdf2a76a82ddb4e4d79 (patch)
tree0f2e6fd17a07e60fa11a8f80e2bdd38565265a95 /lldb/packages/Python/lldbsuite/test
parent32c959dab394550415ec8a4021de510772bbca9f (diff)
downloadbcm5719-llvm-c12d82ba2dfba2290ba6ffdf2a76a82ddb4e4d79.tar.gz
bcm5719-llvm-c12d82ba2dfba2290ba6ffdf2a76a82ddb4e4d79.zip
[LLDB][MIPS] Fix TestMiniDumpNew
Reviewers: labath, clayborg Subscribers: jaydeep, bhushan, lldb-commits, slthakur Differential Revision: https://reviews.llvm.org/D29215 llvm-svn: 294415
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
index 44a42fdfe9d..9becd875631 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
@@ -23,6 +23,14 @@ class MiniDumpNewTestCase(TestBase):
_linux_x86_64_not_crashed_pid = 29939
_linux_x86_64_not_crashed_pid_offset = 0xD967
+ def setUp(self):
+ super(MiniDumpNewTestCase, self).setUp()
+ self._initial_platform = lldb.DBG.GetSelectedPlatform()
+
+ def tearDown(self):
+ lldb.DBG.SetSelectedPlatform(self._initial_platform)
+ super(MiniDumpNewTestCase, self).tearDown()
+
def test_process_info_in_minidump(self):
"""Test that lldb can read the process information from the Minidump."""
# target create -c linux-x86_64.dmp
OpenPOWER on IntegriCloud