repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
update comment.
[ruby-svn.git]
/
test
/
test_timeout.rb
blob
dfa863b3734e0977a32e1928e4309a9c53932476
1
require 'test/unit'
2
require 'timeout'
3
require 'thread'
4
5
class TestTimeout < Test::Unit::TestCase
6
def test_queue
7
q = Queue.new
8
assert_raise(Timeout::Error, "[ruby-dev:32935]") {
9
timeout(0.1) { q.pop }
10
}
11
end
12
end
13