diff --git a/ChangeLog b/ChangeLog index 7c3fd802be..c450c8cf56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jan 9 03:22:46 2005 Minero Aoki + + * 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 * 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