From ff7fc9cfa4ba0c2ca703f2a271ae1f3a66330aa1 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 20 Oct 2011 22:16:24 +0000 Subject: [PATCH] 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. llvm-svn: 142625 --- lldb/test/dotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index e93dbc2ce1b1..07d5dee9767f 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -480,7 +480,7 @@ def parseOptionsAndInitTestdirs(): 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