xref: /llvm-project/lldb/test/Shell/Commands/command-thread-backtrace.test (revision af009451ec439593554f03bc714e46ad2cd41738)
1# RUN: %clang_host -g %S/Inputs/main.c -o %t
2
3# RUN: not %lldb %t -b -o 'b foo' -o 'r' -o 'thread backtrace --count -1' 2>&1 | FileCheck %s --check-prefix COUNT
4# COUNT: error: invalid integer value for option 'c': -1
5
6# RUN: not %lldb %t -b -o 'b foo' -o 'r' -o 'thread backtrace --extended nah' 2>&1 | FileCheck %s --check-prefix EXTENDED
7# EXTENDED: error: invalid boolean value for option 'e': nah
8
9# RUN: not %lldb %t -b -o 'b foo' -o 'r' -o 'thread backtrace --start -1' 2>&1 | FileCheck %s --check-prefix START
10# START: error: invalid integer value for option 's': -1
11
12# RUN: %lldb %t -b -o 'b foo' -o 'r' -o 'thread backtrace --count 0' | FileCheck %s
13# CHECK: frame #0:
14# CHECK: frame #1:
15