1# REQUIRES: lua 2# UNSUPPORTED: lldb-repro 3# 4# RUN: rm -rf %t.stderr %t.stdout 5# RUN: cat %s | %lldb --script-language lua 2> %t.stderr > %t.stdout 6# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT 7# RUN: cat %t.stderr | FileCheck %s --check-prefix STDERR 8script 9file = lldb.SBFile(2, "w", false) 10lldb.debugger:SetOutputFile(file) 11io.write(95000 + 126, "\n") 12quit 13script 14io.write(95000 + 14, "\n") 15 16# STDOUT: 95126 17# STDOUT-NOT: 95014 18# STDERR: 95014 19 20# RUN: rm -rf %t.stderr %t.stdout 21# RUN: %lldb --script-language lua -o 'script io.stderr:write(95000 + 126, "\n")' 2> %t.stderr > %t.stdout 22# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT 23