diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-08 18:23:24 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-08 18:23:24 +0000 |
commit | b2625d914e0b003495f6dd9a06a7c69d063e589c (patch) | |
tree | e66b224c53eb41f5ad3e79e69e566cea9872e329 | |
parent | 16b5ba2707a711be7a7e0cbb5f8dc1b4f4f41c13 (diff) | |
download | ruby-b2625d914e0b003495f6dd9a06a7c69d063e589c.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/fileutils/test_fileutils.rb | 4 |
2 files changed, 7 insertions, 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> * lib/yaml.rb: Kernel#y requires an argument. diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 18944e913e..480ef548ce 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -751,12 +751,12 @@ end each_sample_file do |srcpath, destpath| copy_entry srcpath, destpath assert_same_file srcpath, destpath - assert_same_entry srcpath, destpath + assert_equal File.stat(srcpath).ftype, File.stat(destpath).ftype end if have_symlink? File.symlink 'somewhere', 'tmp/symsrc' 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 |