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

make FileUtils tests safe when interrupting in setup

* test/fileutils/test_fileutils.rb (TestFileUtils#teardown):
  do not assume cwd is TMPROOT and never remove current directory.
  [ruby-core:47224][Bug #6884]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2012-08-21 11:32:18 +00:00
parent 9bae83f89f
commit d4c84d175e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Tue Aug 21 20:30:06 2012 Benoit Daloze <eregontp@gmail.com>
* test/fileutils/test_fileutils.rb (TestFileUtils#teardown):
do not assume cwd is TMPROOT and never remove current directory.
[ruby-core:47224][Bug #6884]
Tue Aug 21 17:29:56 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* addr2line.c (fill_lines): need check and cast of the file size of

View file

@ -105,9 +105,8 @@ class TestFileUtils
end
def teardown
tmproot = Dir.pwd
Dir.chdir @prevdir
my_rm_rf tmproot
my_rm_rf TMPROOT
end