aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_find.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-28 01:24:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-28 01:24:36 +0000
commit5dfc455b72707c6e9150b92056d2607a16918f65 (patch)
tree47b505047015fadfe71bf02bce0ba96bd14d3dad /test/test_find.rb
parent868c98dccfb433772546e9abba935e0625ef310b (diff)
downloadruby-5dfc455b72707c6e9150b92056d2607a16918f65.tar.gz
test: File.symlink needs administrator privilege
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_find.rb')
-rw-r--r--test/test_find.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_find.rb b/test/test_find.rb
index cb2ce56129..2fa81eb0b4 100644
--- a/test/test_find.rb
+++ b/test/test_find.rb
@@ -47,7 +47,7 @@ class TestFind < Test::Unit::TestCase
File.open("#{d}/b/b", "w"){}
begin
File.symlink("#{d}/b", "#{d}/c")
- rescue NotImplementedError
+ rescue NotImplementedError, Errno::EACCES
skip "symlink is not supported."
end
a = []
@@ -168,7 +168,7 @@ class TestFind < Test::Unit::TestCase
Dir.mktmpdir {|d|
begin
File.symlink("foo", "#{d}/bar")
- rescue NotImplementedError
+ rescue NotImplementedError, Errno::EACCES
skip "symlink is not supported."
end
a = []
@@ -182,7 +182,7 @@ class TestFind < Test::Unit::TestCase
Dir.mktmpdir {|d|
begin
File.symlink("foo", "#{d}/bar")
- rescue NotImplementedError
+ rescue NotImplementedError, Errno::EACCES
skip "symlink is not supported."
end
assert_raise(Errno::ENOENT) {
@@ -228,7 +228,7 @@ class TestFind < Test::Unit::TestCase
File.rename(dir_1, dir_2)
begin
File.symlink("d1", dir_1)
- rescue NotImplementedError
+ rescue NotImplementedError, Errno::EACCES
skip "symlink is not supported."
end
end