diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 12:25:03 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 12:25:03 +0000 |
commit | 5f10d4ca6585f54870e1b0d6b9dacc60d040e53e (patch) | |
tree | 854316ec5600dc9b41d0566cc7b03b5a29c1ab94 /test | |
parent | eac3fe92e6e1eac8341df08f6b112a095bc37f5e (diff) | |
download | ruby-5f10d4ca6585f54870e1b0d6b9dacc60d040e53e.tar.gz ruby-5f10d4ca6585f54870e1b0d6b9dacc60d040e53e.tar.xz ruby-5f10d4ca6585f54870e1b0d6b9dacc60d040e53e.zip |
* ext/pty/pty.c (get_device_once): use DEVICELEN instead of
sizeof SlaveName.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/test_pty.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb index 6787da4d2..bbf85a3d3 100644 --- a/test/test_pty.rb +++ b/test/test_pty.rb @@ -13,7 +13,6 @@ class TestPTY < Test::Unit::TestCase def test_spawn_without_block r, w, pid = PTY.spawn(RUBY, '-e', 'puts "a"') assert_equal("a\r\n", r.gets) - assert_raise(Errno::EIO) { r.gets } ensure Process.wait pid if pid end @@ -22,7 +21,6 @@ class TestPTY < Test::Unit::TestCase PTY.spawn(RUBY, '-e', 'puts "b"') {|r,w,pid| assert_equal("b\r\n", r.gets) Process.wait(pid) - assert_raise(Errno::EIO) { r.gets } } end @@ -31,7 +29,6 @@ class TestPTY < Test::Unit::TestCase PTY.spawn(commandline) {|r,w,pid| assert_equal("foo\r\n", r.gets) Process.wait(pid) - assert_raise(Errno::EIO) { r.gets } } end @@ -39,7 +36,6 @@ class TestPTY < Test::Unit::TestCase PTY.spawn([RUBY, "argv0"], '-e', 'puts "bar"') {|r,w,pid| assert_equal("bar\r\n", r.gets) Process.wait(pid) - assert_raise(Errno::EIO) { r.gets } } end end if defined? PTY |