21 lines · plain
1# RUN: rm -rf %t.stderr %t.stdout2# RUN: cat %s | %lldb --script-language lua 2> %t.stderr > %t.stdout3# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT4# RUN: cat %t.stderr | FileCheck %s --check-prefix STDERR5script6file = lldb.SBFile(2, "w", false)7lldb.debugger:SetOutputFile(file)8print(95000 + 126, nil, 'a')9quit10script11print({})12quit13 14# STDOUT: 95126 nil a15# STDOUT-NOT: table: {{0x[[:xdigit:]]+}}16# STDERR: table: {{0x[[:xdigit:]]+}}17 18# RUN: rm -rf %t.stderr %t.stdout19# RUN: %lldb --script-language lua -o 'script print(95000 + 126, nil, "a")' 2> %t.stderr > %t.stdout20# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT21