1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2013-06-05 00:48:24 +00:00
parent 14ec81b0a2
commit 0094cd8c64
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 5 09:46:46 2013 NARUSE, Yui <naruse@ruby-lang.org>
* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
EACCES for Windows.
Wed Jun 5 08:13:37 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (rb_big_pow): Don't need to multiply SIZEOF_BDIGITS.

View file

@ -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