diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-13 03:27:01 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-13 03:27:01 +0000 |
commit | b0aaa8b22b8935e9f1d9f54c4554f86e6401b789 (patch) | |
tree | 92d8eae4f7b796bc1b15dd7a4a0bc767e09520d9 | |
parent | 2f43d4b20eb9e41a40fe3adc29c7939d540bf3be (diff) | |
download | ruby-b0aaa8b22b8935e9f1d9f54c4554f86e6401b789.tar.gz ruby-b0aaa8b22b8935e9f1d9f54c4554f86e6401b789.tar.xz ruby-b0aaa8b22b8935e9f1d9f54c4554f86e6401b789.zip |
* test/fileutils/test_fileutils.rb: rescue SystemCallError instead of EINVAL. File.link may raise EACCES on network file systems.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/fileutils/test_fileutils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Feb 13 12:26:37 2004 Minero Aoki <aamine@loveruby.net> + + * test/fileutils/test_fileutils.rb: rescue SystemCallError instead + of EINVAL. File.link may raise EACCES on network file systems. + Fri Feb 13 05:18:58 2004 Minero Aoki <aamine@loveruby.net> * test/fileutils/test_fileutils.rb: File.link raises EINVAL on diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 5df027e85..34d5a7388 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -41,7 +41,7 @@ begin File.open('linktmp', 'w') {|f| f.puts 'dummy' } File.link 'linktmp', 'linktest' HAVE_HARDLINK = true -rescue NotImplementedError, Errno::EINVAL +rescue NotImplementedError, SystemCallError HAVE_HARDLINK = false ensure File.unlink 'linktest' if File.exist?('linktest') |