Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lldb/test/Shell/Commands/command-dwim-print.test
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# RUN: echo quit | %lldb -o "dwim-print a" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK1
# (lldb) dwim-print a
# CHECK1:{{^ \^}}
# CHECK1:{{^ (\^|˄)}}
# CHECK1: {{^ error: use of undeclared identifier 'a'}}
# RUN: echo quit | %lldb -o "p a" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK2
# (lldb) p a
# CHECK2:{{^ \^}}
# CHECK2:{{^ (\^|˄)}}
# RUN: echo quit | %lldb -o "dwim-print -- a" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK3
# (lldb) dwim-print -- a
# CHECK3:{{^ \^}}
# CHECK3:{{^ (\^|˄)}}
# RUN: echo quit | %lldb -o "settings set show-inline-diagnostics false" \
# RUN: -o "dwim-print a" 2>&1 | FileCheck %s --check-prefix=CHECK4
# CHECK4: error: <user expression 0>:1:1: use of undeclared identifier
10 changes: 5 additions & 5 deletions lldb/test/Shell/Commands/command-expr-diagnostics.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
# RUN: echo quit | %lldb -o "expression a+b" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK1
# (lldb) expression a+b
# CHECK1:{{^ \^ \^}}
# CHECK1: {{^ | error: use of undeclared identifier 'b'}}
# CHECK1:{{^ (\^|˄) (\^|˄)}}
# CHECK1: {{^ (\||│) error: use of undeclared identifier 'b'}}
# CHECK1: {{^ error: use of undeclared identifier 'a'}}

# RUN: echo quit | %lldb -o "expr a" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK2
# (lldb) expr a
# CHECK2:{{^ \^}}
# CHECK2:{{^ (\^|˄)}}

# RUN: echo quit | %lldb -o "expr -i 0 -o 0 -- a" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK3
# (lldb) expr -i 0 -o 0 -- a
# CHECK3:{{^ \^}}
# CHECK3:{{^ (\^|˄)}}
# CHECK3: {{^ error: use of undeclared identifier 'a'}}

# RUN: echo "int main(){return 0;}">%t.c
Expand All @@ -23,7 +23,7 @@
# RUN: "expr --top-level -- template<typename T> T FOO(T x) { return x/2;}" -o \
# RUN: "expression -- FOO(\"\")" 2>&1 | FileCheck %s --check-prefix=CHECK4
# (lldb) expression -- FOO("")
# CHECK4:{{^ \^}}
# CHECK4:{{^ (\^|˄)}}
# CHECK4: {{^ note: in instantiation of function template}}
# CHECK4: error: <user expression

Expand Down
6 changes: 3 additions & 3 deletions lldb/test/Shell/Commands/command-options.test
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# RUN: echo quit | %lldb -O "log enable -x" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK1
# (lldb) log enable -x
# CHECK1:{{^ \^~}}
# CHECK1:{{^ (\^|˄)(~|˜)}}
# CHECK1: {{^ error: unknown or ambiguous option}}

# RUN: echo quit | %lldb -O " log enable -xxxxxxx" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK2
# (lldb) log enable -xxxxxxx
# CHECK2:{{^ \^~~~~~~~}}
# CHECK2:{{^ [\^|]~~~~~~~}}
# CHECK2: {{^ error: unknown or ambiguous option}}
# RUN: echo quit | %lldb -O "log enable dwarf all -f dwarf.log -x" \
# RUN: | FileCheck %s --strict-whitespace --check-prefix=CHECK3
# (lldb) log enable dwarf all -f dwarf.log -x
# CHECK3:{{^ \^~}}
# CHECK3:{{^ [\^|]~}}
# CHECK3: {{^ error: unknown or ambiguous option}}
Loading