[Lldb-commits] [lldb] r257342 - Fix TestMiniDump.py for Python 2/3 (and for a change to debug info)

Adrian McCarthy via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 11 08:35:31 PST 2016


Author: amccarth
Date: Mon Jan 11 10:35:30 2016
New Revision: 257342

URL: http://llvm.org/viewvc/llvm-project?rev=257342&view=rev
Log:
Fix TestMiniDump.py for Python 2/3 (and for a change to debug info)

Differential Revision: http://reviews.llvm.org/D16017

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/minidump/TestMiniDump.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/minidump/TestMiniDump.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/minidump/TestMiniDump.py?rev=257342&r1=257341&r2=257342&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/minidump/TestMiniDump.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/minidump/TestMiniDump.py Mon Jan 11 10:35:30 2016
@@ -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()




More information about the lldb-commits mailing list