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

ruby-changes:23768

From: ko1 <ko1@a...>
Date: Sun, 27 May 2012 13:35:21 +0900 (JST)
Subject: [ruby-changes:23768] ko1:r35819 (trunk): * benchmark/driver.rb: fix to continue benchmarks when

ko1	2012-05-27 13:35:11 +0900 (Sun, 27 May 2012)

  New Revision: 35819

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

  Log:
    * benchmark/driver.rb: fix to continue benchmarks when
      an error is occurred.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/driver.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35818)
+++ ChangeLog	(revision 35819)
@@ -1,3 +1,8 @@
+Sun May 27 13:33:26 2012  Koichi Sasada  <ko1@a...>
+
+	* benchmark/driver.rb: fix to continue benchmarks when
+	  an error is occurred.
+
 Sun May 27 11:27:50 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): fix operator
Index: benchmark/driver.rb
===================================================================
--- benchmark/driver.rb	(revision 35818)
+++ benchmark/driver.rb	(revision 35819)
@@ -223,10 +223,11 @@
     }
 
     if $? != 0
-      raise "\`#{cmd}\' exited with abnormal status (#{$?})"
+      output "\`#{cmd}\' exited with abnormal status (#{$?})"
+      0
+    else
+      m.real
     end
-
-    m.real
   end
 end
 

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

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