summaryrefslogtreecommitdiff
path: root/test/-ext-/old_thread_select/test_old_thread_select.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-14 19:14:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-14 19:14:27 +0000
commit2e3d072d9da80937bf3b5a1e2bd52db21dee7114 (patch)
tree1ae78ea9893521f7910132920fe45871600c2a4a /test/-ext-/old_thread_select/test_old_thread_select.rb
parent5f7f1e516218a05ee904c9d4977e5fa4436a6e16 (diff)
test/-ext-: suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/old_thread_select/test_old_thread_select.rb')
-rw-r--r--test/-ext-/old_thread_select/test_old_thread_select.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/-ext-/old_thread_select/test_old_thread_select.rb b/test/-ext-/old_thread_select/test_old_thread_select.rb
index 292b7176e2..99a0a506bd 100644
--- a/test/-ext-/old_thread_select/test_old_thread_select.rb
+++ b/test/-ext-/old_thread_select/test_old_thread_select.rb
@@ -46,8 +46,10 @@ class TestOldThreadSelect < Test::Unit::TestCase
w.syswrite '.'
rfds = [ r.fileno, r2.fileno ]
rc = IO.old_thread_select(rfds, nil, nil, nil)
+ diff = Time.now - t0
assert_equal [ r.fileno ], rfds, bug5306
assert_equal 1, rc, bug5306
+ assert_operator diff, :>=, 0, "returned too early: diff=#{diff}"
end
end
end