diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-06-26 21:47:36 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-06-26 21:51:00 -0700 |
commit | d7bc20c93311fcda1e8548a121db1bdf769dec87 (patch) | |
tree | 3f88ea07f60eb4e0052a13d0717ef83976475e20 /tests/fkr.expect.out | |
parent | e5011fbcdf3237da3483dcd59c4904fe06c88233 (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/fkr.expect.out')
-rw-r--r-- | tests/fkr.expect.out | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/fkr.expect.out b/tests/fkr.expect.out new file mode 100644 index 00000000..fdda2047 --- /dev/null +++ b/tests/fkr.expect.out @@ -0,0 +1,8 @@ +saw expected startup prompt +ctrl-a handled +\xE9, first byte, handled +\xE9, second byte, handled +\c@ handled +invalid terminate sequence handled +valid terminate sequence handled +exited on seeing valid terminate |