ruby-changes:47935
From: nobu <ko1@a...>
Date: Thu, 28 Sep 2017 11:51:45 +0900 (JST)
Subject: [ruby-changes:47935] nobu:r60049 (trunk): test_io_console.rb: flush
nobu 2017-09-28 11:51:41 +0900 (Thu, 28 Sep 2017) New Revision: 60049 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60049 Log: test_io_console.rb: flush * test/io/console/test_io_console.rb: flush to ensure the second data is sent. Modified files: trunk/test/io/console/test_io_console.rb Index: test/io/console/test_io_console.rb =================================================================== --- test/io/console/test_io_console.rb (revision 60048) +++ test/io/console/test_io_console.rb (revision 60049) @@ -200,6 +200,7 @@ defined?(PTY) and defined?(IO.console) a https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L200 m.print "a" s.iflush m.print "b\n" + m.flush assert_equal("b\n", s.readpartial(10)) } end @@ -209,6 +210,7 @@ defined?(PTY) and defined?(IO.console) a https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L210 s.print "a" s.oflush # oflush may be issued after "a" is already sent. s.print "b" + s.flush assert_include(["b", "ab"], m.readpartial(10)) } end @@ -218,6 +220,7 @@ defined?(PTY) and defined?(IO.console) a https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L220 m.print "a" s.ioflush m.print "b\n" + m.flush assert_equal("b\n", s.readpartial(10)) } end @@ -227,6 +230,7 @@ defined?(PTY) and defined?(IO.console) a https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L230 s.print "a" s.ioflush # ioflush may be issued after "a" is already sent. s.print "b" + s.flush assert_include(["b", "ab"], m.readpartial(10)) } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/