aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-07 14:57:38 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-07 14:57:38 +0000
commit70e9201610cf83408f5e408571a48b7eab8cc5fa (patch)
tree830329f16f8cc6fd487dfd1311f884862d711403
parent21fcb1c3a19bf6b330aebf14f4c915c0d63925d6 (diff)
downloadruby-70e9201610cf83408f5e408571a48b7eab8cc5fa.tar.gz
* test/io/wait/test_io_wait.rb: skip tests if the platform is
mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/io/wait/test_io_wait.rb7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a5a649dfe..5712c75c69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat May 7 23:56:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * test/io/wait/test_io_wait.rb: skip tests if the platform is
+ mswin.
+
Sat May 7 22:43:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_zero): remove redundant zero fill.
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 4aad7cd106..53b200148e 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -17,18 +17,21 @@ class TestIOWait < Test::Unit::TestCase
end
def test_nread
+ return if /mswin/ =~ RUBY_PLATFORM
assert_equal 0, @r.nread
@w.syswrite "."
assert_equal 1, @r.nread
end
def test_nread_buffered
+ return if /mswin/ =~ RUBY_PLATFORM
@w.syswrite ".\n!"
assert_equal ".\n", @r.read(2)
assert_equal 1, @r.nread
end
def test_ready?
+ return if /mswin/ =~ RUBY_PLATFORM
refute @r.ready?
@w.syswrite "."
assert @r.ready?
@@ -41,23 +44,27 @@ class TestIOWait < Test::Unit::TestCase
end
def test_wait
+ return if /mswin/ =~ RUBY_PLATFORM
assert_nil @r.wait(0)
@w.syswrite "."
assert_equal @r, @r.wait(0)
end
def test_wait_buffered
+ return if /mswin/ =~ RUBY_PLATFORM
@w.syswrite ".\n!"
assert_equal ".\n", @r.gets
assert_equal true, @r.wait(0)
end
def test_wait_forever
+ return if /mswin/ =~ RUBY_PLATFORM
Thread.new { sleep 0.01; @w.syswrite "." }
assert_equal @r, @r.wait
end
def test_wait_eof
+ return if /mswin/ =~ RUBY_PLATFORM
Thread.new { sleep 0.01; @w.close }
assert_nil @r.wait
end