summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 00:48:24 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-05 00:48:24 +0000
commit0094cd8c6413a6af824ef2f25f143a626af4aa52 (patch)
tree9883f747e80af25b5b7ec3a69d255c8ebe54f6c4 /test
parent14ec81b0a26458e0099472cbb0e768b0411016cb (diff)
* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
EACCES for Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/fileutils/test_fileutils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index f4996e5b9e5..af8358bd011 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -759,8 +759,8 @@ class TestFileUtils
assert_equal 0700, (File.stat('tmp/tmp').mode & 0777) if have_file_perm?
Dir.rmdir 'tmp/tmp'
- # EISDIR on OS X, FreeBSD; EEXIST on Linux
- assert_raise(Errno::EISDIR, Errno::EEXIST) {
+ # EISDIR on OS X, FreeBSD; EEXIST on Linux; Errno::EACCES on Windows
+ assert_raise(Errno::EISDIR, Errno::EEXIST, Errno::EACCES) {
mkdir '/'
}
end