aboutsummaryrefslogtreecommitdiffstats
path: root/test/fileutils
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-29 01:25:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-29 01:25:07 +0000
commit831105bbc7bab665e5d5b4f7e86dc0f2814c1861 (patch)
tree00f27f8cf68339822ea7468557d986393c709910 /test/fileutils
parente4bcb753cc2abb6d5cdcb4d2fc9fa3a74f289267 (diff)
downloadruby-831105bbc7bab665e5d5b4f7e86dc0f2814c1861.tar.gz
test: try File.symlink with invalid paths
* test (have_symlink?): try File.symlink with invalid paths to test the administrator privilege, nil just raises an ArgumentError before trying the actual API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
-rw-r--r--test/fileutils/test_fileutils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 28488cd27f..fffa2b8853 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -47,7 +47,7 @@ class TestFileUtils < Test::Unit::TestCase
end
def check_have_symlink?
- File.symlink nil, nil
+ File.symlink "", ""
rescue NotImplementedError, Errno::EACCES
return false
rescue