diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-26 15:03:37 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-26 15:03:37 +0000 |
| commit | a08cdbeb03a6c9c335bcd8a158c95f7c8f8fca63 (patch) | |
| tree | 9e813e7eb5f4c56a5de156b99b0aa7bcea499726 /test/fileutils/test_fileutils.rb | |
| parent | 4682ea9549bf1ec7ea3896c9431a6f1aa5a0221b (diff) | |
| download | ruby-a08cdbeb03a6c9c335bcd8a158c95f7c8f8fca63.tar.gz ruby-a08cdbeb03a6c9c335bcd8a158c95f7c8f8fca63.tar.xz ruby-a08cdbeb03a6c9c335bcd8a158c95f7c8f8fca63.zip | |
* test/fileutils/test_fileutils.rb (setup): support BSD style directory group inheritance. [ruby-dev:25440]
* test/fileutils/fileasserts.rb (assert_same_entry): show entry difference.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils/test_fileutils.rb')
| -rw-r--r-- | test/fileutils/test_fileutils.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 480ef548c..1c50c10b2 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -14,6 +14,7 @@ prevdir = Dir.pwd tmproot = TestFileUtils::TMPROOT Dir.mkdir tmproot unless File.directory?(tmproot) Dir.chdir tmproot +p tmproot def have_drive_letter? /djgpp|mswin(?!ce)|mingw|bcc|emx/ =~ RUBY_PLATFORM @@ -76,10 +77,15 @@ class TestFileUtils end end + def mymkdir(path) + Dir.mkdir path + File.chown nil, Process.gid, path if have_file_perm? + end + def setup @prevdir = Dir.pwd tmproot = TMPROOT - Dir.mkdir tmproot unless File.directory?(tmproot) + mymkdir tmproot unless File.directory?(tmproot) Dir.chdir tmproot my_rm_rf 'data'; Dir.mkdir 'data' my_rm_rf 'tmp'; Dir.mkdir 'tmp' |
