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:
parent
9bae83f89f
commit
d4c84d175e
@ -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
|
||||
|
@ -105,9 +105,8 @@ class TestFileUtils
|
||||
end
|
||||
|
||||
def teardown
|
||||
tmproot = Dir.pwd
|
||||
Dir.chdir @prevdir
|
||||
my_rm_rf tmproot
|
||||
my_rm_rf TMPROOT
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user