From 9a529e70b88da899bc46b78e64c81f40cfd8eb90 Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 20 Jul 2004 00:17:51 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ test/fileutils/test_fileutils.rb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e0b573c3d..b1a8f74fd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 20 09:15:17 2004 Hirokazu Yamamoto + + * test/fileutils/test_fileutils.rb: File.link raises EINVAL on BeOS. + Mon Jul 19 01:15:07 2004 GOTOU Yuuzou * lib/webrick/httpservlet/cgihandler.rb diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 0c5acb600b..8c06f875b2 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.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')