Skip to content

Commit

Permalink
* bootstraptest/test_thread.rb: try to `join' each 100
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
ko1 committed Nov 26, 2012
1 parent 7b918be commit 42e9fc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Mon Nov 26 19:10:53 2012 Koichi Sasada <[email protected]>

* 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 <[email protected]>

* common.mk: specify label `built-ruby'.
Expand Down
4 changes: 3 additions & 1 deletion bootstraptest/test_thread.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ def m

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
Expand Down

0 comments on commit 42e9fc4

Please sign in to comment.