aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_find.rb
diff options
context:
space:
mode:
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