summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-07-27 16:50:40 +0000
committerBrian Gesiak <modocache@gmail.com>2017-07-27 16:50:40 +0000
commitd256538b3a3c96e96d112b02a87ab380d61ef96f (patch)
treef6196317a9724336b5a3612b5709def23d5a0638 /llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
parent2574d7cbf635076825ea7953b12b75593ba41024 (diff)
downloadbcm5719-llvm-d256538b3a3c96e96d112b02a87ab380d61ef96f.tar.gz
bcm5719-llvm-d256538b3a3c96e96d112b02a87ab380d61ef96f.zip
[lit] Fix order of checks in shtest-shell.py test
Summary: An expectation in `utils/lit/tests/Inputs/shtest-shell/redirects.txt` expects that first a string printed to stdout is seen, and then a string printed to stderr. Add `flush()` calls to ensure that stdout is printed before stderr, as expected. Reviewers: rnk, mgorny, jroelofs Reviewed By: rnk Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D35947 llvm-svn: 309292
Diffstat (limited to 'llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py')
-rw-r--r--llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py4
1 files changed, 4 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()
OpenPOWER on IntegriCloud