diff options
author | aycabta <aycabta@gmail.com> | 2021-05-16 22:50:59 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-06-21 17:58:48 +0900 |
commit | 1b543dc2261fee0317ba69b366b6a26fe3aeb43f (patch) | |
tree | 5656a2879b88302276ff7d04c9a09048a23855b2 /test/reline/yamatanooroti | |
parent | 242bad9a87dbfc8a6af829ee3da3853925be14ab (diff) |
[ruby/reline] Handle Errno::ENOTTY correctly
https://github.com/ruby/reline/commit/8daa392ba6
Diffstat (limited to 'test/reline/yamatanooroti')
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 2ae078f15f..d6c21675e0 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -775,6 +775,17 @@ begin EOC end + def test_with_newline + omit if Reline::IOGate.win? + cmd = %Q{ruby -e 'print(%Q{abc def \\e\\r})' | ruby -I#{@pwd}/lib -rreline -e 'p Reline.readline(%{> })'} + start_terminal(50, 50, ['bash', '-c', cmd]) + close + assert_screen(<<~'EOC') + > abc def + "abc def " + EOC + end + private def write_inputrc(content) File.open(@inputrc_file, 'w') do |f| f.write content |