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:
Adrian McCarthy 2016-01-11 16:35:30 +00:00
parent dab50463d0
commit b06107707d
1 changed files with 3 additions and 3 deletions

View File

@ -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()