mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 11:33:58 +02:00
* Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e7566d8fb
commit
a3e1b1ce7e
233 changed files with 46004 additions and 13653 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'test/unit'
|
||||
require 'timeout'
|
||||
require 'fcntl'
|
||||
#require 'fcntl'
|
||||
|
||||
class TestReadPartial < Test::Unit::TestCase
|
||||
def make_pipe
|
||||
|
@ -48,6 +48,8 @@ class TestReadPartial < Test::Unit::TestCase
|
|||
w << 'abc'
|
||||
assert_equal('ab', r.readpartial(2))
|
||||
assert_equal('c', r.readpartial(2))
|
||||
assert false, "TODO: doesn't work on cygwin" if /cygwin/ =~ RUBY_PLATFORM
|
||||
assert false, "TODO: doesn't work on mswin32" if /mswin32/ =~ RUBY_PLATFORM
|
||||
assert_raises(TimeoutError) {
|
||||
timeout(0.1) { r.readpartial(2) }
|
||||
}
|
||||
|
@ -62,11 +64,11 @@ class TestReadPartial < Test::Unit::TestCase
|
|||
assert_equal("de", r.readpartial(2))
|
||||
assert_equal("f\n", r.readpartial(4096))
|
||||
assert_equal("ghi\n", r.readpartial(4096))
|
||||
assert false, "TODO: doesn't work on cygwin" if /cygwin/ =~ RUBY_PLATFORM
|
||||
assert false, "TODO: doesn't work on mswin32" if /mswin32/ =~ RUBY_PLATFORM
|
||||
assert_raises(TimeoutError) {
|
||||
timeout(0.1) { r.readpartial(2) }
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue