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

ruby-changes:14544

From: mame <ko1@a...>
Date: Sat, 23 Jan 2010 00:34:51 +0900 (JST)
Subject: [ruby-changes:14544] Ruby:r26382 (trunk): * sample/coverage.rb: preserve exit status.

mame	2010-01-23 00:26:52 +0900 (Sat, 23 Jan 2010)

  New Revision: 26382

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

  Log:
    * sample/coverage.rb: preserve exit status.

  Modified files:
    trunk/ChangeLog
    trunk/sample/coverage.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26381)
+++ ChangeLog	(revision 26382)
@@ -1,3 +1,7 @@
+Sat Jan 23 00:25:19 2010  Yusuke Endoh  <mame@t...>
+
+	* sample/coverage.rb: preserve exit status.
+
 Sat Jan 23 00:21:18 2010  Yusuke Endoh  <mame@t...>
 
 	* test/ruby/test_dir.rb: get rid of debug print.
Index: sample/coverage.rb
===================================================================
--- sample/coverage.rb	(revision 26381)
+++ sample/coverage.rb	(revision 26382)
@@ -8,6 +8,7 @@
 pwd = Dir.pwd
 
 at_exit do
+  exit_exc = $!
   Dir.chdir(pwd) do
     Coverage.result.each do |sfile, covs|
       cfile = sfile + ext
@@ -57,4 +58,5 @@
       end
     end
   end
+  raise exit_exc if exit_exc
 end

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

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