mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0c30c6836b
commit
ddc22d3596
2 changed files with 6 additions and 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>
|
Fri Feb 13 05:18:58 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on
|
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on
|
||||||
|
|
|
@ -41,7 +41,7 @@ begin
|
||||||
File.open('linktmp', 'w') {|f| f.puts 'dummy' }
|
File.open('linktmp', 'w') {|f| f.puts 'dummy' }
|
||||||
File.link 'linktmp', 'linktest'
|
File.link 'linktmp', 'linktest'
|
||||||
HAVE_HARDLINK = true
|
HAVE_HARDLINK = true
|
||||||
rescue NotImplementedError, Errno::EINVAL
|
rescue NotImplementedError, SystemCallError
|
||||||
HAVE_HARDLINK = false
|
HAVE_HARDLINK = false
|
||||||
ensure
|
ensure
|
||||||
File.unlink 'linktest' if File.exist?('linktest')
|
File.unlink 'linktest' if File.exist?('linktest')
|
||||||
|
|
Loading…
Reference in a new issue