summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
committerpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
commitbdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch)
treec50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
parentPrint a 'p' flag for file descriptors that were opened after pledge(2). (diff)
downloadwireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz
wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py')
-rw-r--r--gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py b/gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
new file mode 100644
index 00000000000..357089d4899
--- /dev/null
+++ b/gnu/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+import sys
+
+
+sys.stdout.write("a line on stdout\n")
+sys.stdout.flush()
+
+sys.stderr.write("a line on stderr\n")
+sys.stderr.flush()