From 16b0aeda7dda8790d026873f5efd7d6fb344a1dd Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 21 May 2023 13:51:06 +0900 Subject: Make sure 'become' process is given a proper tty device --- test/test_go.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') 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 -- cgit v1.2.3