diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-05-21 13:51:06 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-05-21 14:01:27 +0900 |
commit | 16b0aeda7dda8790d026873f5efd7d6fb344a1dd (patch) | |
tree | 52d1dad610db8a4f3cc8a97c32cbfa3b934c6f61 /test | |
parent | 86e4f4a84180da7f5b99c3db8043cb9d92cb9189 (diff) |
Make sure 'become' process is given a proper tty device
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 1f4245ab..f7dcfe6e 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -2921,6 +2921,11 @@ class TestGoFZF < TestBase OUTPUT tmux.until { assert_block(expected, _1) } end + + def test_become_tty + tmux.send_keys "sleep 0.5 | #{FZF} --bind 'start:reload:ls' --bind 'load:become:tty'", :Enter + tmux.until { |lines| assert_includes lines, '/dev/tty' } + end end module TestShell |