* 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
This commit is contained in:
aamine 2004-02-13 03:27:01 +00:00
parent 0c30c6836b
commit ddc22d3596
2 changed files with 6 additions and 1 deletions

View file

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