[Lldb-commits] [lldb] r134673 - /lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py

Johnny Chen johnny.chen at apple.com
Thu Jul 7 18:01:45 PDT 2011


Author: johnny
Date: Thu Jul  7 20:01:45 2011
New Revision: 134673

URL: http://llvm.org/viewvc/llvm-project?rev=134673&view=rev
Log:
Rearranged the debug output to come before the assert for function name 'outer_inline'.
Right now clang-139 fails the test.

Modified:
    lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py

Modified: lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py?rev=134673&r1=134672&r2=134673&view=diff
==============================================================================
--- lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py (original)
+++ lldb/trunk/test/python_api/frame/inlines/TestInlinedFrame.py Thu Jul  7 20:01:45 2011
@@ -47,16 +47,16 @@
         self.assertTrue(process.GetState() == lldb.eStateStopped,
                         PROCESS_STOPPED)
 
-        # The first breakpoint should correspond to an inlined call frame.
-        frame0 = process.GetThreadAtIndex(0).GetFrameAtIndex(0)
-        self.assertTrue(frame0.IsInlined() and
-                        frame0.GetFunctionName() == 'outer_inline')
-
         self.runCmd("bt")
         if self.TraceOn():
             print "Full stack traces when first stopped on the breakpoint 'outer_inline':"
             import lldbutil
-            print lldbutil.print_stacktraces(process)
+            print lldbutil.print_stacktraces(process, string_buffer=True)
+
+        # The first breakpoint should correspond to an inlined call frame.
+        frame0 = process.GetThreadAtIndex(0).GetFrameAtIndex(0)
+        self.assertTrue(frame0.IsInlined() and
+                        frame0.GetFunctionName() == 'outer_inline')
 
 
 if __name__ == '__main__':





More information about the lldb-commits mailing list