summaryrefslogtreecommitdiff
path: root/test/fileutils/test_fileutils.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-15 07:32:07 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-15 07:32:07 +0000
commit9972c18c126f209cc7a83dacb3446fbdd6a064a0 (patch)
treeb0160dc58fa3f0033a71df25d69f0de9c0e9ca96 /test/fileutils/test_fileutils.rb
parent1c9df374f32f4f5ff14e83c609c0926c78f0b4ce (diff)
* test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir):
FileUtils.rmdir ignores Errno::ENOTEMPTY, so, in such cases, this assertion is nonsence. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils/test_fileutils.rb')
-rw-r--r--test/fileutils/test_fileutils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 65825bd3938..c5f8734fead 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -1243,6 +1243,7 @@ class TestFileUtils
begin
Dir.rmdir '/'
+ rescue Errno::ENOTEMPTY
rescue => e
assert_raise(e.class) {
# Dir.rmdir('') raises Errno::ENOENT.