summaryrefslogtreecommitdiff
path: root/test/io/console
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 14:33:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 14:33:36 +0000
commit73c6b9d453e2e83482b928c1447f42d35013d565 (patch)
treec73eeb251702bf5225c5f8b03e534e4c8d3daaab /test/io/console
parenta7b0b52f09b63e8ffe28b0040b54ae71a4a829e4 (diff)
* ext/io/console/console.c (console_dev): console should be
unbuffered. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/console')
-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 5475a93fa3..b06b5d5c67 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -148,6 +148,10 @@ class TestIO_Console < Test::Unit::TestCase
}
end
+ def test_sync
+ assert(helper {IO.console.sync}, "console should be unbuffered")
+ end
+
private
def helper
m, s = PTY.open