[Lldb-commits] [lldb] r327941 - Add a suggestion to convert dotest tests to use run_to_source_breakpoint.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 19 19:15:23 PDT 2018


Author: jingham
Date: Mon Mar 19 19:15:23 2018
New Revision: 327941

URL: http://llvm.org/viewvc/llvm-project?rev=327941&view=rev
Log:
Add a suggestion to convert dotest tests to use run_to_source_breakpoint.

Modified:
    lldb/trunk/www/projects.html

Modified: lldb/trunk/www/projects.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/projects.html?rev=327941&r1=327940&r2=327941&view=diff
==============================================================================
--- lldb/trunk/www/projects.html (original)
+++ lldb/trunk/www/projects.html Mon Mar 19 19:15:23 2018
@@ -403,6 +403,20 @@
                                             </li>
 
                                             <li>
+                                              Convert the dotest style tests to use lldbutil.run_to_source_breakpoint.
+
+                                              <p>
+                                                run_to_source_breakpoint & run_to_name_breakpoint provide a compact API that
+                                                does in one line what the first 10 or 20 lines of most of the old tests now do by
+                                                hand.  Using these functions makes tests much more readable, and by centralizing
+                                                common functionality will make maintaining the testsuites easier in the future.
+                                                This is more of a finger exercise, and perhaps best implemented by a rule like:
+                                                &quotIf you touch a test case, and it isn't using run_to_source_breakpoint, please
+                                                make it do so&quot.
+                                              </p>
+                                            </li>
+
+                                            <li>
                                               Unify Watchpoint's & Breakpoints.  
                                               <p>
                                                 Option handling isn't shared, and more importantly the PerformAction's have a lot 




More information about the lldb-commits mailing list