[前][次][番号順一覧][スレッド一覧]

ruby-changes:25802

From: ko1 <ko1@a...>
Date: Mon, 26 Nov 2012 19:14:13 +0900 (JST)
Subject: [ruby-changes:25802] ko1:r37859 (trunk): * bootstraptest/test_thread.rb: try to `join' each 100

ko1	2012-11-26 19:14:01 +0900 (Mon, 26 Nov 2012)

  New Revision: 37859

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37859

  Log:
    * bootstraptest/test_thread.rb: try to `join' each 100
      threads.
      This benchmark seems consuming long time on travis-ci
      several times (and make `failure').

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/test_thread.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37858)
+++ ChangeLog	(revision 37859)
@@ -1,3 +1,10 @@
+Mon Nov 26 19:10:53 2012  Koichi Sasada  <ko1@a...>
+
+	* 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  <ko1@a...>
 
 	* common.mk: specify label `built-ruby'.
Index: bootstraptest/test_thread.rb
===================================================================
--- bootstraptest/test_thread.rb	(revision 37858)
+++ bootstraptest/test_thread.rb	(revision 37859)
@@ -380,7 +380,9 @@
 
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]