summaryrefslogtreecommitdiff
path: root/test/-ext-/old_thread_select
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/old_thread_select')
-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