blob: 9df24e8026507cd254c21cef0e19985f7c0f4f11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# RUN: rm -rf %t.stderr %t.stdout
# RUN: cat %s | %lldb --script-language lua 2> %t.stderr > %t.stdout
# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT
# RUN: cat %t.stderr | FileCheck %s --check-prefix STDERR
script
file = lldb.SBFile(2, "w", false)
lldb.debugger:SetOutputFile(file)
print(95000 + 126, nil, 'a')
quit
script
print({})
quit
# STDOUT: 95126 nil a
# STDOUT-NOT: table: {{0x[[:xdigit:]]+}}
# STDERR: table: {{0x[[:xdigit:]]+}}
# RUN: rm -rf %t.stderr %t.stdout
# RUN: %lldb --script-language lua -o 'script print(95000 + 126, nil, "a")' 2> %t.stderr > %t.stdout
# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT
|