mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 03:05:15 +00:00
[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:
parent
0d6908f2bf
commit
3111676620
@ -1,3 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
sys.stderr.write("a line on stderr\n")
|
||||
sys.stderr.flush()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user