diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-01 07:27:55 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-01 07:27:55 +0000 |
commit | dde49d8e192d7e80755cbf39ce9bebfac9e35a0e (patch) | |
tree | b03dc5bc333f59971ac386ce18f195e1072912d1 /test/socket | |
parent | f14463d911b0278f5f850ba76ca28798738b9e74 (diff) | |
download | ruby-dde49d8e192d7e80755cbf39ce9bebfac9e35a0e.tar.gz ruby-dde49d8e192d7e80755cbf39ce9bebfac9e35a0e.tar.xz ruby-dde49d8e192d7e80755cbf39ce9bebfac9e35a0e.zip |
add a note for cygwin empty UDP packet problem.
This commit is a result of hacks at the CodeFest Akihabara 2006 hosted by FSIJ.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_nonblock.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index 180700c36..3fb31eb6b 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -64,7 +64,9 @@ class TestNonblockSocket < Test::Unit::TestCase assert_equal(u2_port, port) assert_raise(Errno::EAGAIN, Errno::EWOULDBLOCK) { u1.recvfrom_nonblock(100) } u2.send("", 0, u1.getsockname) - assert_nothing_raised { timeout(1) { IO.select [u1] } } + assert_nothing_raised("cygwin 1.5.19 has a problem to send an empty UDP packet. [ruby-dev:28915]") { + timeout(1) { IO.select [u1] } + } mesg, inet_addr = u1.recvfrom_nonblock(100) assert_equal("", mesg) ensure @@ -84,7 +86,9 @@ class TestNonblockSocket < Test::Unit::TestCase assert_equal("aaa", mesg) assert_raise(Errno::EAGAIN, Errno::EWOULDBLOCK) { u1.recv_nonblock(100) } u2.send("", 0, u1.getsockname) - assert_nothing_raised { timeout(1) { IO.select [u1] } } + assert_nothing_raised("cygwin 1.5.19 has a problem to send an empty UDP packet. [ruby-dev:28915]") { + timeout(1) { IO.select [u1] } + } mesg = u1.recv_nonblock(100) assert_equal("", mesg) ensure |