[Lldb-commits] [lldb] r107333 - in /lldb/trunk/test: array_types/TestArrayTypes.py class_types/TestClassTypes.py

Johnny Chen johnny.chen at apple.com
Wed Jun 30 15:22:37 PDT 2010


Author: johnny
Date: Wed Jun 30 17:22:37 2010
New Revision: 107333

URL: http://llvm.org/viewvc/llvm-project?rev=107333&view=rev
Log:
Added comments.

Modified:
    lldb/trunk/test/array_types/TestArrayTypes.py
    lldb/trunk/test/class_types/TestClassTypes.py

Modified: lldb/trunk/test/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/array_types/TestArrayTypes.py?rev=107333&r1=107332&r2=107333&view=diff
==============================================================================
--- lldb/trunk/test/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/array_types/TestArrayTypes.py Wed Jun 30 17:22:37 2010
@@ -29,6 +29,7 @@
         self.ci.HandleCommand("file " + exe, res)
         self.assertTrue(res.Succeeded())
 
+        # Break on line 42 inside main().
         self.ci.HandleCommand("breakpoint set -f main.c -l 42", res)
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().startswith(
@@ -37,15 +38,19 @@
         self.ci.HandleCommand("run", res)
         self.assertTrue(res.Succeeded())
 
+        # The breakpoint should have a hit count of 1.
         self.ci.HandleCommand("breakpoint list", res)
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().find('resolved, hit count = 1'))
 
+        # And the stop reason of the thread should be breakpoint.
         self.ci.HandleCommand("thread list", res)
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().find('state is Stopped') and
                         res.GetOutput().find('stop reason = breakpoint'))
 
+        # Issue 'variable list' command on several array-type variables.
+
         self.ci.HandleCommand("variable list strings", res);
         self.assertTrue(res.Succeeded())
         output = res.GetOutput()

Modified: lldb/trunk/test/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypes.py?rev=107333&r1=107332&r2=107333&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Wed Jun 30 17:22:37 2010
@@ -29,6 +29,7 @@
         self.ci.HandleCommand("file " + exe, res)
         self.assertTrue(res.Succeeded())
 
+        # Break on the ctor function of class C.
         self.ci.HandleCommand("breakpoint set -f main.cpp -l 73", res)
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().startswith(
@@ -37,15 +38,18 @@
         self.ci.HandleCommand("run", res)
         self.assertTrue(res.Succeeded())
 
+        # The breakpoint should have a hit count of 1.
         self.ci.HandleCommand("breakpoint list", res)
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().find('resolved, hit count = 1'))
 
+        # And the stop reason of the thread should be breakpoint.
         self.ci.HandleCommand("thread list", res)
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().find('state is Stopped') and
                         res.GetOutput().find('stop reason = breakpoint'))
 
+        # We should be stopped on the ctor function of class C.
         self.ci.HandleCommand("variable list this", res);
         self.assertTrue(res.Succeeded())
         self.assertTrue(res.GetOutput().startswith('(class C *const) this = '))





More information about the lldb-commits mailing list