summaryrefslogtreecommitdiff
path: root/test/ruby/test_bignum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r--test/ruby/test_bignum.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 65d974005e..58d63a7c29 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -615,14 +615,15 @@ class TestBignum < Test::Unit::TestCase
start_flag = false
end_flag = false
num = (65536 ** 65536)
+ q = Queue.new
thread = Thread.new do
- start_flag = true
assert_raise(RuntimeError) {
+ q << true
num.to_s
end_flag = true
}
end
- sleep 0.001 until start_flag
+ q.pop # sync
thread.raise
thread.join
time = Time.now - time