зеркало из https://github.com/github/ruby.git
* 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:
Родитель
51596d4ac2
Коммит
784ddb80d2
|
@ -1,3 +1,9 @@
|
|||
Tue Jul 22 11:05:08 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]
|
||||
|
||||
* test/ruby/test_process.rb: ditto.
|
||||
|
||||
Tue Jul 22 09:51:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* misc/ruby-mode.el: fix here-doc strings with inner quotes. patches
|
||||
|
|
|
@ -2,11 +2,12 @@ require 'test/unit'
|
|||
|
||||
require 'tmpdir'
|
||||
require 'fileutils'
|
||||
require 'pathname'
|
||||
|
||||
class TestDir < Test::Unit::TestCase
|
||||
|
||||
def setup
|
||||
@root = Dir.mktmpdir('__test_dir__')
|
||||
@root = Pathname.new(Dir.mktmpdir('__test_dir__')).realpath.to_s
|
||||
@nodir = File.join(@root, "dummy")
|
||||
for i in ?a..?z
|
||||
if i.ord % 2 == 0
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче