mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry copies only file type, not mtime. [ruby-dev:25383]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16b5ba2707
commit
b2625d914e
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jan 9 03:22:46 2005 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry
|
||||||
|
copies only file type, not mtime. [ruby-dev:25383]
|
||||||
|
|
||||||
Sat Jan 8 04:38:47 2005 why the lucky stiff <why@ruby-lang.org>
|
Sat Jan 8 04:38:47 2005 why the lucky stiff <why@ruby-lang.org>
|
||||||
|
|
||||||
* lib/yaml.rb: Kernel#y requires an argument.
|
* lib/yaml.rb: Kernel#y requires an argument.
|
||||||
|
|
|
@ -751,12 +751,12 @@ end
|
||||||
each_sample_file do |srcpath, destpath|
|
each_sample_file do |srcpath, destpath|
|
||||||
copy_entry srcpath, destpath
|
copy_entry srcpath, destpath
|
||||||
assert_same_file srcpath, destpath
|
assert_same_file srcpath, destpath
|
||||||
assert_same_entry srcpath, destpath
|
assert_equal File.stat(srcpath).ftype, File.stat(destpath).ftype
|
||||||
end
|
end
|
||||||
if have_symlink?
|
if have_symlink?
|
||||||
File.symlink 'somewhere', 'tmp/symsrc'
|
File.symlink 'somewhere', 'tmp/symsrc'
|
||||||
copy_entry 'tmp/symsrc', 'tmp/symdest'
|
copy_entry 'tmp/symsrc', 'tmp/symdest'
|
||||||
assert_equal File.lstat('tmp/symsrc').mode, File.lstat('tmp/symdest').mode
|
assert_equal File.lstat('tmp/symsrc').ftype, File.lstat('tmp/symdest').ftype
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue