NO_DEBUG_INFO_TESTCASE = True
- @expectedFailureAll
- def test_process_info_in_mini_dump(self):
+ 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
- self.dbg.CreateTarget("")
+ self.dbg.CreateTarget(None)
self.target = self.dbg.GetSelectedTarget()
self.process = self.target.LoadCore("linux-x86_64.dmp")
self.assertTrue(self.process, PROCESS_IS_VALID)
self.assertEqual(self.process.GetNumThreads(), 1)
self.assertEqual(self.process.GetProcessID(), 16001)
- @expectedFailureAll
- def test_thread_info_in_mini_dump(self):
+ def test_thread_info_in_minidump(self):
"""Test that lldb can read the thread information from the Minidump."""
# target create -c linux-x86_64.dmp
- self.dbg.CreateTarget("")
+ self.dbg.CreateTarget(None)
self.target = self.dbg.GetSelectedTarget()
self.process = self.target.LoadCore("linux-x86_64.dmp")
# This process crashed due to a segmentation fault in its
stop_description = thread.GetStopDescription(256)
self.assertTrue("SIGSEGV" in stop_description)
- @expectedFailureAll
- def test_stack_info_in_mini_dump(self):
+ def test_stack_info_in_minidump(self):
"""Test that we can see a trivial stack in a breakpad-generated Minidump."""
- # target create -c linux-x86_64.dmp
- self.dbg.CreateTarget("")
+ # target create linux-x86_64 -c linux-x86_64.dmp
+ self.dbg.CreateTarget("linux-x86_64")
self.target = self.dbg.GetSelectedTarget()
self.process = self.target.LoadCore("linux-x86_64.dmp")
self.assertEqual(self.process.GetNumThreads(), 1)
self.assertTrue(eip.IsValid())
self.assertEqual(pc, eip.GetValueAsUnsigned())
- @expectedFailureAll
def test_snapshot_minidump(self):
"""Test that if we load a snapshot minidump file (meaning the process did not crash) there is no stop reason."""
# target create -c linux-x86_64_not_crashed.dmp
- self.dbg.CreateTarget("")
+ self.dbg.CreateTarget(None)
self.target = self.dbg.GetSelectedTarget()
self.process = self.target.LoadCore("linux-x86_64_not_crashed.dmp")
self.assertEqual(self.process.GetNumThreads(), 1)
stop_description = thread.GetStopDescription(256)
self.assertEqual(stop_description, None)
- @expectedFailureAll
- def test_deeper_stack_in_mini_dump(self):
+ def test_deeper_stack_in_minidump(self):
"""Test that we can examine a more interesting stack in a Minidump."""
# Launch with the Minidump, and inspect the stack.
- target = self.dbg.CreateTarget(None)
+ # target create linux-x86_64_not_crashed -c linux-x86_64_not_crashed.dmp
+ target = self.dbg.CreateTarget("linux-x86_64_not_crashed")
process = target.LoadCore("linux-x86_64_not_crashed.dmp")
thread = process.GetThreadAtIndex(0)
function_name = frame.GetFunctionName()
self.assertTrue(name in function_name)
- @expectedFailureAll
- def test_local_variables_in_mini_dump(self):
+ def test_local_variables_in_minidump(self):
"""Test that we can examine local variables in a Minidump."""
# Launch with the Minidump, and inspect a local variable.
- target = self.dbg.CreateTarget(None)
+ # target create linux-x86_64_not_crashed -c linux-x86_64_not_crashed.dmp
+ target = self.dbg.CreateTarget("linux-x86_64_not_crashed")
process = target.LoadCore("linux-x86_64_not_crashed.dmp")
thread = process.GetThreadAtIndex(0)
frame = thread.GetFrameAtIndex(1)