summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py4
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py6
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py b/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
index aff94cd8b96..9463251d823 100644
--- a/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
+++ b/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
@@ -1,3 +1,7 @@
#!/usr/bin/env python
+
import sys
+
+
sys.stderr.write("a line on stderr\n")
+sys.stderr.flush()
diff --git a/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py b/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
index 5c1849870b1..357089d4899 100644
--- a/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
+++ b/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
@@ -1,4 +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()
OpenPOWER on IntegriCloud