[Lldb-commits] [lldb] r131433 - /lldb/trunk/test/stl/TestSTL.py
Johnny Chen
johnny.chen at apple.com
Mon May 16 16:24:17 PDT 2011
Author: johnny
Date: Mon May 16 18:24:17 2011
New Revision: 131433
URL: http://llvm.org/viewvc/llvm-project?rev=131433&view=rev
Log:
Fix bad test case; not all compilers are guaranteed to step into code inlined from the STL header file.
rdar://problem/8983790
Modified:
lldb/trunk/test/stl/TestSTL.py
Modified: lldb/trunk/test/stl/TestSTL.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/stl/TestSTL.py?rev=131433&r1=131432&r2=131433&view=diff
==============================================================================
--- lldb/trunk/test/stl/TestSTL.py (original)
+++ lldb/trunk/test/stl/TestSTL.py Mon May 16 18:24:17 2011
@@ -59,17 +59,14 @@
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
substrs = [' resolved, hit count = 1'])
- # Now do 'thread step-in', we should stop on the basic_string template.
- #
- # This assertion currently always fails.
- # This might be related: rdar://problem/8247112.
- #
- #self.runCmd("thread step-in", trace=True)
+ # Now do 'thread step-in', if we have successfully stopped, we should
+ # stop due to the reason of "step in".
self.runCmd("thread step-in")
- self.expect("thread backtrace", "We have stepped in STL",
- substrs = ['[inlined]',
- 'basic_string.h'])
+ self.runCmd("process status")
+ if "stopped" in self.res.GetOutput():
+ self.expect("thread backtrace", "We have successfully stepped in",
+ substrs = ['stop reason = step in'])
if __name__ == '__main__':
More information about the lldb-commits
mailing list