25 lines · plain
1# UNSUPPORTED: system-windows2#3# RUN: %clangxx_host -g -O0 %S/Inputs/verbose_trap.cpp -o %t.out -DVERBOSE_TRAP_TEST_CATEGORY=\"Foo\" -DVERBOSE_TRAP_TEST_MESSAGE=\"Bar\"4# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK,CHECK-BOTH5#6# RUN: %clangxx_host -g -O0 %S/Inputs/verbose_trap.cpp -o %t.out -DVERBOSE_TRAP_TEST_CATEGORY=\"\" -DVERBOSE_TRAP_TEST_MESSAGE=\"Bar\"7# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK,CHECK-MESSAGE_ONLY8#9# RUN: %clangxx_host -g -O0 %S/Inputs/verbose_trap.cpp -o %t.out -DVERBOSE_TRAP_TEST_CATEGORY=\"Foo\" -DVERBOSE_TRAP_TEST_MESSAGE=\"\"10# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK,CHECK-CATEGORY_ONLY11#12# RUN: %clangxx_host -g -O0 %S/Inputs/verbose_trap.cpp -o %t.out -DVERBOSE_TRAP_TEST_CATEGORY=\"\" -DVERBOSE_TRAP_TEST_MESSAGE=\"\"13# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK,CHECK-NONE14 15run16# CHECK-BOTH: thread #{{.*}}stop reason = Foo: Bar17# CHECK-MESSAGE_ONLY: thread #{{.*}}stop reason = <empty category>: Bar18# CHECK-CATEGORY_ONLY: thread #{{.*}}stop reason = Foo19# CHECK-NONE: thread #{{.*}}stop reason = <empty category>20frame info21# CHECK: frame #{{.*}}`Dummy::func(this={{.*}}) at verbose_trap.cpp22frame recognizer info 023# CHECK: frame 0 is recognized by Verbose Trap StackFrame Recognizer24q25