aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/interactive.expect.rc
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-06-26 21:47:36 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-06-26 21:51:00 -0700
commitd7bc20c93311fcda1e8548a121db1bdf769dec87 (patch)
tree3f88ea07f60eb4e0052a13d0717ef83976475e20 /tests/interactive.expect.rc
parente5011fbcdf3237da3483dcd59c4904fe06c88233 (diff)
don't allow f-k-r to run if stdin/stdout not a tty
Another developer noticed that redirecting stdin of `fish_key_reader` results in weird behavior. Which is not at all surprising. So add checks to ensure stdin and stdout are attached to a tty. Add some rudimentary unit tests for this program.
Diffstat (limited to 'tests/interactive.expect.rc')
-rw-r--r--tests/interactive.expect.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/interactive.expect.rc b/tests/interactive.expect.rc
index b0cc9e89..5900f537 100644
--- a/tests/interactive.expect.rc
+++ b/tests/interactive.expect.rc
@@ -4,6 +4,7 @@ log_user 0
log_file -noappend interactive.tmp.log
set fish ../test/root/bin/fish
+set fish_key_reader ../test/root/bin/fish_key_reader
set timeout 5