69 lines · plain
1# Test that we warn the user about truncated output2# when target.max-children-count wasn't explicitly set.3 4# RUN: split-file %s %t5# RUN: %clangxx_host -g %t/main.cpp -o %t.out6# RUN: %lldb -x -b -s %t/dwim-commands.input %t.out -o exit 2>&1 \7# RUN: | FileCheck %s --check-prefix=DWIM8#9# RUN: %lldb -x -b -s %t/expr-commands.input %t.out -o exit 2>&1 \10# RUN: | FileCheck %s --check-prefix=EXPR11#12# RUN: %lldb -x -b -s %t/frame-var-commands.input %t.out -o exit 2>&1 \13# RUN: | FileCheck %s --check-prefix=VAR14#15# RUN: %lldb -x -b -s %t/with-setting-commands.input %t.out -o exit 2>&1 \16# RUN: | FileCheck %s --check-prefix=SETTING17 18#--- main.cpp19 20int main() {21 int arr[512] = { 3 };22 __builtin_debugtrap();23}24 25#--- dwim-commands.input26 27run28dwim-print arr29frame variable arr30 31DWIM: (lldb) dwim-print arr32DWIM: *** Some of the displayed variables have more members33DWIM-SAME: use the --show-all-children option to dwim-print34DWIM: (lldb) frame variable arr35DWIM-NOT: *** Some of the displayed variables have more members36 37#--- expr-commands.input38 39run40expression arr41frame variable arr42 43EXPR: (lldb) expression arr44EXPR: *** Some of the displayed variables have more members45EXPR-SAME: use the --show-all-children option to expression46EXPR: (lldb) frame variable arr47EXPR-NOT: *** Some of the displayed variables have more members48 49#--- frame-var-commands.input50 51run52frame variable arr53dwim-print arr54 55VAR: (lldb) frame variable arr56VAR: *** Some of the displayed variables have more members57VAR-SAME: use the --show-all-children option to frame variable58VAR: (lldb) dwim-print arr59VAR-NOT: *** Some of the displayed variables have more members60 61#--- with-setting-commands.input62 63run64settings set target.max-children-count 165frame variable arr66 67SETTING: (lldb) frame variable arr68SETTING-NOT: *** Some of the displayed variables have more members69