diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-30 08:48:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-30 08:48:31 +0000 |
commit | 807fcf9d13fbb30773944cde4f18f11b0a26a8a7 (patch) | |
tree | f731aae993a5b87d2c48b64d4d5b1786c87eba29 /test | |
parent | be9994a03ae32b5cd4a799b20ed96c3aaaba97b7 (diff) | |
download | ruby-807fcf9d13fbb30773944cde4f18f11b0a26a8a7.tar.gz |
* win32/win32.c (rb_w32_select): recalc the rest of timeout for each
iterations. [ruby-core:18015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_sleep.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_sleep.rb b/test/ruby/test_sleep.rb new file mode 100644 index 0000000000..675fdc9747 --- /dev/null +++ b/test/ruby/test_sleep.rb @@ -0,0 +1,10 @@ +require 'test/unit' + +class TestSleep < Test::Unit::TestCase + def test_sleep_5sec + start = Time.now + sleep 5 + slept = Time.now-start + assert_in_delta(5.0, slept, 0.1, "[ruby-core:18015]: longer than expected") + end +end |