mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on BeOS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1859f6ead6
commit
9a529e70b8
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jul 20 09:15:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on BeOS.
|
||||
|
||||
Mon Jul 19 01:15:07 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/httpservlet/cgihandler.rb
|
||||
|
|
|
@ -30,7 +30,7 @@ end
|
|||
begin
|
||||
File.symlink 'not_exist', 'symlink_test'
|
||||
HAVE_SYMLINK = true
|
||||
rescue NotImplementedError, SystemCallError
|
||||
rescue NotImplementedError
|
||||
HAVE_SYMLINK = false
|
||||
ensure
|
||||
File.unlink 'symlink_test' if File.symlink?('symlink_test')
|
||||
|
@ -43,7 +43,7 @@ begin
|
|||
File.open('linktmp', 'w') {|f| f.puts 'dummy' }
|
||||
File.link 'linktmp', 'linktest'
|
||||
HAVE_HARDLINK = true
|
||||
rescue NotImplementedError
|
||||
rescue NotImplementedError, SystemCallError
|
||||
HAVE_HARDLINK = false
|
||||
ensure
|
||||
File.unlink 'linktest' if File.exist?('linktest')
|
||||
|
|
Loading…
Add table
Reference in a new issue