ruby-changes:47817
From: nobu <ko1@a...>
Date: Sun, 17 Sep 2017 07:40:17 +0900 (JST)
Subject: [ruby-changes:47817] nobu:r59935 (trunk): test_fileutils.rb: rmdir should fail on nonexistent directory
nobu 2017-09-17 07:40:09 +0900 (Sun, 17 Sep 2017) New Revision: 59935 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59935 Log: test_fileutils.rb: rmdir should fail on nonexistent directory Modified files: trunk/test/fileutils/test_fileutils.rb Index: test/fileutils/test_fileutils.rb =================================================================== --- test/fileutils/test_fileutils.rb (revision 59934) +++ test/fileutils/test_fileutils.rb (revision 59935) @@ -1621,6 +1621,12 @@ class TestFileUtils < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L1621 rmdir(subdir, parents: true) } File.unlink("#{subdir}/file") + assert_raise(Errno::ENOENT) { + rmdir("#{subdir}/nonexistent") + } + assert_raise(Errno::ENOENT) { + rmdir("#{subdir}/nonexistent", parents: true) + } assert_nothing_raised(Errno::ENOENT) { rmdir(subdir, parents: true) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/