forked from OSchip/llvm-project
Fix TestMiniDump.py for Python 2/3 (and for a change to debug info)
Differential Revision: http://reviews.llvm.org/D16017 llvm-svn: 257342
This commit is contained in:
parent
dab50463d0
commit
b06107707d
|
@ -3,7 +3,7 @@ Test basics of mini dump debugging.
|
|||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from six import iteritems
|
||||
|
||||
|
||||
import lldb
|
||||
|
@ -83,8 +83,8 @@ class MiniDumpTestCase(TestBase):
|
|||
thread = process.GetThreadAtIndex(0)
|
||||
|
||||
expected_stack = { 0: 'bar', 1: 'foo', 2: 'main' }
|
||||
self.assertEqual(thread.GetNumFrames(), len(expected_stack))
|
||||
for index, name in expected_stack.iteritems():
|
||||
self.assertGreaterEqual(thread.GetNumFrames(), len(expected_stack))
|
||||
for index, name in iteritems(expected_stack):
|
||||
frame = thread.GetFrameAtIndex(index)
|
||||
self.assertTrue(frame.IsValid())
|
||||
function_name = frame.GetFunctionName()
|
||||
|
|
Loading…
Reference in New Issue