summaryrefslogtreecommitdiff
path: root/test/fileutils
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-03 15:46:29 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-03 15:46:29 +0000
commit5be464239560765b08fa6379b3f6b902c9236877 (patch)
treed5aee69de109a4f7fe2aa1f7fbf194820c611df9 /test/fileutils
parent441873745517923a1ceecac901331dfea3afd2cd (diff)
add EEXIST for Linux
* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add EEXIST for Linux. (suggested by nurse) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
-rw-r--r--test/fileutils/test_fileutils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 13fb26a..f4996e5 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -759,7 +759,8 @@ class TestFileUtils
assert_equal 0700, (File.stat('tmp/tmp').mode & 0777) if have_file_perm?
Dir.rmdir 'tmp/tmp'
- assert_raise(Errno::EISDIR) {
+ # EISDIR on OS X, FreeBSD; EEXIST on Linux
+ assert_raise(Errno::EISDIR, Errno::EEXIST) {
mkdir '/'
}
end