[前][次][番号順一覧][スレッド一覧]

ruby-changes:30480

From: usa <ko1@a...>
Date: Thu, 15 Aug 2013 16:32:13 +0900 (JST)
Subject: [ruby-changes:30480] usa:r42559 (trunk): * test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir):

usa	2013-08-15 16:32:07 +0900 (Thu, 15 Aug 2013)

  New Revision: 42559

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42559

  Log:
    * test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir):
      FileUtils.rmdir ignores Errno::ENOTEMPTY, so, in such cases, this
      assertion is nonsence.

  Modified files:
    trunk/ChangeLog
    trunk/test/fileutils/test_fileutils.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42558)
+++ ChangeLog	(revision 42559)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug 15 16:30:23 2013  NAKAMURA Usaku  <usa@r...>
+
+	* test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir):
+	  FileUtils.rmdir ignores Errno::ENOTEMPTY, so, in such cases, this
+	  assertion is nonsence.
+
 Thu Aug 15 15:49:35 2013  Tanaka Akira  <akr@f...>
 
 	* process.c (rb_clock_gettime): [DOC] FreeBSD 7.1 supports
Index: test/fileutils/test_fileutils.rb
===================================================================
--- test/fileutils/test_fileutils.rb	(revision 42558)
+++ test/fileutils/test_fileutils.rb	(revision 42559)
@@ -1243,6 +1243,7 @@ class TestFileUtils https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L1243
 
     begin
       Dir.rmdir '/'
+    rescue Errno::ENOTEMPTY
     rescue => e
       assert_raise(e.class) {
         # Dir.rmdir('') raises Errno::ENOENT.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]