
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
11 lines
153 B
Python
11 lines
153 B
Python
#!/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()
|