mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
* test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]
* test/ruby/test_process.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
51596d4ac2
commit
784ddb80d2
3 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
require 'test/unit'
|
||||
require 'tmpdir'
|
||||
require 'pathname'
|
||||
require_relative 'envutil'
|
||||
|
||||
class TestProcess < Test::Unit::TestCase
|
||||
|
@ -21,6 +22,7 @@ class TestProcess < Test::Unit::TestCase
|
|||
|
||||
def with_tmpchdir
|
||||
Dir.mktmpdir {|d|
|
||||
d = Pathname.new(d).realpath.to_s
|
||||
Dir.chdir(d) {
|
||||
yield d
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue