summaryrefslogtreecommitdiff
path: root/sample/coverage.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-22 15:26:52 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-22 15:26:52 +0000
commit0f29696f9d38642962766ecee2c2f9008675e7dd (patch)
treebf006e4f1a940cfea4cc4d72e65b23188a90c0d8 /sample/coverage.rb
parent0f078cbfc445cf079b2d3e3fb3eb0c85f9c2318b (diff)
* sample/coverage.rb: preserve exit status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/coverage.rb')
-rw-r--r--sample/coverage.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/coverage.rb b/sample/coverage.rb
index 3f45e9f..5e15f99 100644
--- a/sample/coverage.rb
+++ b/sample/coverage.rb
@@ -8,6 +8,7 @@ accum = !accum || accum == "" || !(%w(f n 0).include?(accum[0]))
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 @@ at_exit do
end
end
end
+ raise exit_exc if exit_exc
end