diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index b45cbcc2dd..cd4410302b 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 } |