Skip to content

Commit b01e120

Browse files
committed
move tests to a new file. added test on nested commands, eg watchpoint set
1 parent 8dfb266 commit b01e120

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lldb/test/Shell/Commands/command-breakpoint-col.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
44
# RUN: %lldb -b -o 'help breakpoint set' -o 'breakpoint set -f main.c -l 2 -u 21' %t.out | FileCheck %s --check-prefix HELP --check-prefix CHECK
55
# RUN: %lldb -b -o 'help _regexp-break' -o 'b main.c:2:21' %t.out | FileCheck %s --check-prefix HELP-REGEX --check-prefix CHECK
6-
# RUN: not %lldb -b -o 'breakpoint foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix ERROR-MSG
76
# HELP: -u <column> ( --column <column> )
87
# HELP: Specifies the column number on which to set this breakpoint.
98
# HELP-REGEX: _regexp-break <filename>:<linenum>:<colnum>
109
# HELP-REGEX: main.c:12:21{{.*}}Break at line 12 and column 21 of main.c
1110
# CHECK: at main.c:2:21
12-
# ERROR-MSG: 'foo' is not a valid subcommand of "breakpoint". Valid subcommands are {'clear','command','delete','disable','enable',...}. Use "help breakpoint" to find out more.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# UNSUPPORTED: system-windows
2+
#
3+
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
4+
# RUN: not %lldb -b -o 'breakpoint foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix BP-MSG
5+
# RUN: not %lldb -b -o 'watchpoint set foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix WP-MSG
6+
# CHECK: at main.c:2:21
7+
# BP-MSG: 'foo' is not a valid subcommand of "breakpoint". Valid subcommands are: clear, command, delete, disable, enable, and others. Use "help breakpoint" to find out more.
8+
# WP-MSG: 'foo' is not a valid subcommand of "watchpoint set". Valid subcommands are: expression, variable. Use "help watchpoint set" to find out more.

0 commit comments

Comments
 (0)