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 | b47137b7e7ef6887724f41c472cc58dd722afe1d (patch) | |
| tree | e66b224c53eb41f5ad3e79e69e566cea9872e329 | |
| parent | 3aa10de84261b3bed08d13e34583a3194326094d (diff) | |
| download | ruby-b47137b7e7ef6887724f41c472cc58dd722afe1d.tar.gz ruby-b47137b7e7ef6887724f41c472cc58dd722afe1d.tar.xz ruby-b47137b7e7ef6887724f41c472cc58dd722afe1d.zip | |
* test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry copies only file type, not mtime. [ruby-dev:25383]
git-svn-id: http://svn.ruby-lang.org/repos/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 18944e913..480ef548c 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 |
