OSDN Git Service

[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)
commit5a69de7528dcc5ad93b73e7ff62ba196d4e415be
tree8f7da5b3efd22ba0da2e9ad04d981473177d2b86
parent9e8e51fbc4e56c9def4b661289a453ca79c5b84b
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309292 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py