From 42e9fc4110dc6607332fe05c2e2f4e565fd1b5fd Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 26 Nov 2012 10:14:01 +0000 Subject: [PATCH] * bootstraptest/test_thread.rb: try to `join' each 100 threads. This benchmark seems consuming long time on travis-ci several times (and make `failure'). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ bootstraptest/test_thread.rb | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 014360d49e..cd3607835d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Nov 26 19:10:53 2012 Koichi Sasada + + * bootstraptest/test_thread.rb: try to `join' each 100 + threads. + This benchmark seems consuming long time on travis-ci + several times (and make `failure'). + Mon Nov 26 18:22:56 2012 Koichi Sasada * common.mk: specify label `built-ruby'. diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index 2494cccbf3..19799ab4d3 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -380,7 +380,9 @@ assert_equal 'ok', %q{ assert_equal 'ok', %q{ begin - 10000.times { Thread.new(true) {|x| x == false } } + 100.times{ + (1..100).map{ Thread.new(true) {|x| x == false } }.each{|th| th.join} + } rescue NoMemoryError, StandardError end :ok