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

ruby-changes:29003

From: kazu <ko1@a...>
Date: Tue, 4 Jun 2013 00:47:10 +0900 (JST)
Subject: [ruby-changes:29003] kazu:r41055 (trunk): add EEXIST for Linux

kazu	2013-06-04 00:46:29 +0900 (Tue, 04 Jun 2013)

  New Revision: 41055

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

  Log:
    add EEXIST for Linux
    
    * test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
      EEXIST for Linux. (suggested by nurse)

  Modified files:
    trunk/ChangeLog
    trunk/test/fileutils/test_fileutils.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41054)
+++ ChangeLog	(revision 41055)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jun  4 00:44:27 2013  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
+	  EEXIST for Linux. (suggested by nurse)
+
 Mon Jun  3 23:58:19 2013  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* lib/fileutils.rb (FileUtils.rmdir): use remove_tailing_slash.
Index: test/fileutils/test_fileutils.rb
===================================================================
--- test/fileutils/test_fileutils.rb	(revision 41054)
+++ test/fileutils/test_fileutils.rb	(revision 41055)
@@ -759,7 +759,8 @@ class TestFileUtils https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L759
     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

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

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