Skip test_sync when there is no tty or something.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-06-14 15:49:12 +00:00
parent 7d6fe4e604
commit 179ab89278

View File

@ -149,6 +149,7 @@ class TestIO_Console < Test::Unit::TestCase
end
def test_sync
skip "Can't get console (because of there is no tty?)" unless IO.console
assert(helper {IO.console.sync}, "console should be unbuffered")
end