-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement STDIN isolation among tests (#43)
Isolate STDIN among tests and among a test and clitest itself. This fixes the bug reported on issue #42 in which tests and clitest share STDIN, causing unexpected results when the command specified on a test reads from STDIN.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# This was a bug found on early versions of clitest in which tests shared | ||
# STDIN with clitest and with each other, causing unexpected results when | ||
# a test read from STDIN. This was reported on issue #42 on Github. | ||
# | ||
# Testing for a regression. | ||
# | ||
|
||
$ echo testing stdin isolation ; read stdin_isolation | ||
testing stdin isolation | ||
$ echo Failed\? Regression to stdin isolation added. ; unset stdin_isolation | ||
Failed? Regression to stdin isolation added. |