[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
This commit is contained in:
Brian Gesiak 2017-07-27 16:50:40 +00:00
parent 0d6908f2bf
commit 3111676620
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#!/usr/bin/env python
import sys
sys.stderr.write("a line on stderr\n")
sys.stderr.flush()

View File

@ -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()