diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-28 01:24:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-28 01:24:36 +0000 |
commit | 5dfc455b72707c6e9150b92056d2607a16918f65 (patch) | |
tree | 47b505047015fadfe71bf02bce0ba96bd14d3dad /test/ruby/test_dir.rb | |
parent | 868c98dccfb433772546e9abba935e0625ef310b (diff) | |
download | ruby-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/ruby/test_dir.rb')
-rw-r--r-- | test/ruby/test_dir.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index 44c9b7c5f7..33d83cbca3 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -224,7 +224,7 @@ class TestDir < Test::Unit::TestCase File.symlink(File.join(@root, f), File.join(@root, "symlink-#{ f }")) end - rescue NotImplementedError + rescue NotImplementedError, Errno::EACCES return end @@ -303,7 +303,7 @@ class TestDir < Test::Unit::TestCase Dir.chdir(dirname) do begin File.symlink('some-dir', 'dir-symlink') - rescue NotImplementedError + rescue NotImplementedError, Errno::EACCES return end |