From ddc22d359619d8d9ed3a06e1368e0e96c007060c Mon Sep 17 00:00:00 2001 From: aamine Date: Fri, 13 Feb 2004 03:27:01 +0000 Subject: [PATCH] * test/fileutils/test_fileutils.rb: rescue SystemCallError instead of EINVAL. File.link may raise EACCES on network file systems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/fileutils/test_fileutils.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dc2ce4b552..6550169a8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 13 12:26:37 2004 Minero Aoki + + * 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 * 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 5df027e850..34d5a73882 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')