[Lldb-commits] [lldb] r142625 - /lldb/trunk/test/dotest.py

Johnny Chen johnny.chen at apple.com
Thu Oct 20 15:16:24 PDT 2011


Author: johnny
Date: Thu Oct 20 17:16:24 2011
New Revision: 142625

URL: http://llvm.org/viewvc/llvm-project?rev=142625&view=rev
Log:
Breakpoint specification can have the form '-n main', so it's not a good idea to
check that the option arg in '-x opt_arg' does not start with a '-' char.

Modified:
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=142625&r1=142624&r2=142625&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Thu Oct 20 17:16:24 2011
@@ -480,7 +480,7 @@
         elif sys.argv[index].startswith('-x'):
             # Increment by 1 to fetch the breakpoint specification of the benchmark executable.
             index += 1
-            if index >= len(sys.argv) or sys.argv[index].startswith('-'):
+            if index >= len(sys.argv):
                 usage()
             bmBreakpointSpec = sys.argv[index]
             index += 1





More information about the lldb-commits mailing list