aboutsummaryrefslogtreecommitdiffstats
path: root/test/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-28 02:51:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-28 02:51:41 +0000
commit588a7eafba05cacae4c4c957f840a6cd2e0e94ef (patch)
treef07c338384af288acb7908df38cd9bfeb2250a78 /test/io
parent09c03e282d608ee7ef44c8d2ed9160a223cdbe4d (diff)
downloadruby-588a7eafba05cacae4c4c957f840a6cd2e0e94ef.tar.gz
test_io_console.rb: flush
* test/io/console/test_io_console.rb: flush to ensure the second data is sent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io')
-rw-r--r--test/io/console/test_io_console.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index a3814e739a..fb20308256 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -200,6 +200,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do
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) and TestIO_Console.class_eval do
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) and TestIO_Console.class_eval do
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) and TestIO_Console.class_eval do
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