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

ruby-changes:21679

From: kosaki <ko1@a...>
Date: Sun, 13 Nov 2011 02:43:08 +0900 (JST)
Subject: [ruby-changes:21679] kosaki:r33728 (trunk): * test/ruby/test_io.rb (test_fcntl_dupfd): skip if Fcntl::DUPFD

kosaki	2011-11-13 02:42:57 +0900 (Sun, 13 Nov 2011)

  New Revision: 33728

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

  Log:
    * test/ruby/test_io.rb (test_fcntl_dupfd): skip if Fcntl::DUPFD
      is not defined. Pointed out by CHIKANAGA Tomoyuki. Thanks.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_io.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33727)
+++ ChangeLog	(revision 33728)
@@ -1,3 +1,8 @@
+Sat Nov 12 20:57:29 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* test/ruby/test_io.rb (test_fcntl_dupfd): skip if Fcntl::DUPFD
+	  is not defined. Pointed out by CHIKANAGA Tomoyuki. Thanks.
+
 Sat Nov 12 17:26:10 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* io.c (do_ioctl, ioctl_narg_len, setup_narg, rb_ioctl): use
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 33727)
+++ test/ruby/test_io.rb	(revision 33728)
@@ -1927,7 +1927,7 @@
         IO.for_fd(fd).close
       end
     end
-  end
+  end if defined?(Fcntl::F_DUPFD)
 
   def test_cross_thread_close_fd
     skip "cross thread close causes hung-up if pipe." if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM

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

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