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

ruby-changes:22061

From: akr <ko1@a...>
Date: Fri, 23 Dec 2011 16:55:48 +0900 (JST)
Subject: [ruby-changes:22061] akr:r34110 (trunk): refine message for test_thr_kill.

akr	2011-12-23 16:55:39 +0900 (Fri, 23 Dec 2011)

  New Revision: 34110

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

  Log:
    refine message for test_thr_kill.

  Modified files:
    trunk/test/thread/test_queue.rb

Index: test/thread/test_queue.rb
===================================================================
--- test/thread/test_queue.rb	(revision 34109)
+++ test/thread/test_queue.rb	(revision 34110)
@@ -60,11 +60,11 @@
     bug5343 = '[ruby-core:39634]'
     Dir.mktmpdir {|d|
       timeout = 20
-      total_loop = 2000
+      total_count = 2000
       begin
         assert_normal_exit(<<-"_eom", bug5343, {:timeout => timeout, :chdir=>d})
           require "thread"
-          #{total_loop}.times do |i|
+          #{total_count}.times do |i|
             open("test_thr_kill_count", "w") {|f| f.puts i }
             queue = Queue.new
             r, w = IO.pipe
@@ -78,7 +78,7 @@
         _eom
       rescue Timeout::Error
         count = File.read("#{d}/test_thr_kill_count").to_i
-        flunk "only #{count} times looped in #{timeout} seconds.  (should run #{total_loop} times)"
+        flunk "only #{count}/#{total_count} done in #{timeout} seconds."
       end
     }
   end

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

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