aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-05 16:32:27 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-06-19 20:39:10 +1200
commit3fd83cb6fcc483d2eac0795bc139c521a3a59bd2 (patch)
tree775fa3b051fa2a50adbc994aeef82d9b2dc2c482 /bootstraptest
parenta6a4e86029f16415767b579e62691f09b1fb6075 (diff)
downloadruby-3fd83cb6fcc483d2eac0795bc139c521a3a59bd2.tar.gz
Improve benchmarks and tests for threads.
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_thread.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index d16295de8b..854065f87e 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -11,6 +11,9 @@ assert_equal %q{ok}, %q{
}.value
}
assert_equal %q{ok}, %q{
+ :ok if Thread.new{sleep}.backtrace == []
+}
+assert_equal %q{ok}, %q{
begin
v = 0
(1..200).map{|i|