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')