mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/-ext-/old_thread_select/test_old_thread_select.rb
(TestOldThreadSelect#test_old_select_read_timeout): if the machine is fast enough, the time used by code around IO.select may be smaller than Time implement threshold. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
34e65bee79
commit
13a77870de
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Wed Aug 31 00:30:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/-ext-/old_thread_select/test_old_thread_select.rb
|
||||||
|
(TestOldThreadSelect#test_old_select_read_timeout): if the machine
|
||||||
|
is fast enough, the time used by code around IO.select may be smaller
|
||||||
|
than Time implement threshold.
|
||||||
|
|
||||||
Wed Aug 31 00:04:38 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Aug 31 00:04:38 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/-test-/old_thread_select/old_thread_select.c (old_thread_select):
|
* ext/-test-/old_thread_select/old_thread_select.c (old_thread_select):
|
||||||
|
|
|
@ -19,7 +19,7 @@ class TestOldThreadSelect < Test::Unit::TestCase
|
||||||
rc = IO.old_thread_select([r.fileno], nil, nil, 0.001)
|
rc = IO.old_thread_select([r.fileno], nil, nil, 0.001)
|
||||||
diff = Time.now - t0
|
diff = Time.now - t0
|
||||||
assert_equal 0, rc
|
assert_equal 0, rc
|
||||||
assert diff > 0.001, "returned too early"
|
assert diff >= 0.001, "returned too early"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue