1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* sample/coverage.rb: preserve exit status.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-01-22 15:26:52 +00:00
parent 0f078cbfc4
commit 0f29696f9d
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sat Jan 23 00:25:19 2010 Yusuke Endoh <mame@tsg.ne.jp>
* sample/coverage.rb: preserve exit status.
Sat Jan 23 00:21:18 2010 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_dir.rb: get rid of debug print.

View file

@ -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