diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-11 20:10:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-11 20:10:34 +0000 |
commit | 65b11a04f10a2438f0d6ba263a78d16367c3aac0 (patch) | |
tree | 176775c7c4460a54457bab1c0cbb733d2c7811b6 /test | |
parent | 896d04128112f0a3ee5f0bc6e3bfa9e1baf4cf51 (diff) | |
download | ruby-65b11a04f10a2438f0d6ba263a78d16367c3aac0.tar.gz |
console.c: set winsize on Windows
* ext/io/console/console.c (console_set_winsize): retry shrinking
window and screen buffer. [ruby-core:82741] [Bug #13888]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/io/console/test_io_console.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index d65a8e79ca..a3814e739a 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -317,6 +317,11 @@ defined?(IO.console) and TestIO_Console.class_eval do def test_set_winsize_console s = IO.console.winsize assert_nothing_raised(TypeError) {IO.console.winsize = s} + bug = '[ruby-core:82741] [Bug #13888]' + IO.console.winsize = [s[0], s[1]+1] + assert_equal([s[0], s[1]+1], IO.console.winsize, bug) + IO.console.winsize = s + assert_equal(s, IO.console.winsize, bug) end def test_close |