From 3e2092923fe61fa67e83dc975ea9a5fe6a6eb9d5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 31 Aug 2008 07:39:45 +0000 Subject: * bootstraptest/test_thread.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_thread.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index ebb60056c..f9a5beef2 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -361,3 +361,7 @@ assert_equal 'ok', %q{ t.join $? ? :ng : :ok }, '[ruby-dev:35414]' + +assert_equal 'ok', %q{ + 10000.times { Thread.new(true) {|x| x == false } }; :ok +} -- cgit