[lit] Fix order of checks in shtest-shell.py test
authorBrian Gesiak <modocache@gmail.com>
Thu, 27 Jul 2017 16:50:40 +0000 (16:50 +0000)
committerBrian Gesiak <modocache@gmail.com>
Thu, 27 Jul 2017 16:50:40 +0000 (16:50 +0000)
commitd256538b3a3c96e96d112b02a87ab380d61ef96f
treef6196317a9724336b5a3612b5709def23d5a0638
parent2574d7cbf635076825ea7953b12b75593ba41024
[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
llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py