xref: /llvm-project/lldb/test/Shell/Commands/command-wrong-subcommand-error-msg.test (revision 4d788814061a1003f577e293f2cd74b30223e050)
1*4d788814SVy Nguyen# UNSUPPORTED: system-windows
2*4d788814SVy Nguyen#
3*4d788814SVy Nguyen# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
4*4d788814SVy Nguyen# RUN: not %lldb -b -o 'breakpoint foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix BP-MSG
5*4d788814SVy Nguyen# RUN: not %lldb -b -o 'watchpoint set foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix WP-MSG
6*4d788814SVy Nguyen# CHECK: at main.c:2:21
7*4d788814SVy Nguyen# 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*4d788814SVy Nguyen# WP-MSG: "foo" is not a valid subcommand of "watchpoint set". Valid subcommands are: expression, variable. Use "help watchpoint set" to find out more.