aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Python/io.test
blob: f4303d4bcdf499ef79e998830b7ed4345444e98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# UNSUPPORTED: system-windows

# RUN: rm -rf %t.stdout %t.stderr
# RUN: cat %s | %lldb --script-language python > %t.stdout 2> %t.stderr
# RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT
# RUN: cat %t.stderr | FileCheck %s --check-prefix STDERR
script
import sys
variable = 250 + 5
print(variable)
print("wrote to", "stderr", file=sys.stderr)
quit

# STDOUT: 255
# STDERR: wrote to stderr