Skip to content

Commit

Permalink
* sample/coverage.rb: preserve exit status.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mame committed Jan 22, 2010
1 parent 0f078cb commit 0f29696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Jan 23 00:25:19 2010 Yusuke Endoh <[email protected]>

* sample/coverage.rb: preserve exit status.

Sat Jan 23 00:21:18 2010 Yusuke Endoh <[email protected]>

* test/ruby/test_dir.rb: get rid of debug print.
Expand Down
2 changes: 2 additions & 0 deletions sample/coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,4 +58,5 @@
end
end
end
raise exit_exc if exit_exc
end

0 comments on commit 0f29696

Please sign in to comment.