summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/Commands/command-backtrace.test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/Shell/Commands/command-backtrace.test')
-rw-r--r--lldb/test/Shell/Commands/command-backtrace.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/test/Shell/Commands/command-backtrace.test b/lldb/test/Shell/Commands/command-backtrace.test
new file mode 100644
index 00000000000..2816f5f2e33
--- /dev/null
+++ b/lldb/test/Shell/Commands/command-backtrace.test
@@ -0,0 +1,12 @@
+# Check basic functionality of command bt.
+# RUN: %lldb -s %s 2>&1 | FileCheck %s
+
+# Make sure this is not rejected by the parser as invalid syntax.
+# Blank characters after the '1' are important, as we're testing the parser.
+bt 1
+# CHECK: error: invalid target
+
+# Make sure this is not rejected by the parser as invalid syntax.
+# Blank characters after the 'all' are important, as we're testing the parser.
+bt all
+# CHECK: error: invalid target
OpenPOWER on IntegriCloud