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

ruby-changes:21706

From: kosaki <ko1@a...>
Date: Tue, 15 Nov 2011 10:44:16 +0900 (JST)
Subject: [ruby-changes:21706] kosaki:r33755 (trunk): * test/ruby/test_io.rb (TestIO#test_fcntl_dupfd): fix OpenBSD test

kosaki	2011-11-15 10:41:58 +0900 (Tue, 15 Nov 2011)

  New Revision: 33755

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

  Log:
    * test/ruby/test_io.rb (TestIO#test_fcntl_dupfd): fix OpenBSD test
      failure. [ruby-dev:44872]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33754)
+++ ChangeLog	(revision 33755)
@@ -1,3 +1,8 @@
+Tue Nov 15 09:58:25 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* test/ruby/test_io.rb (TestIO#test_fcntl_dupfd): fix OpenBSD test
+	  failure. [ruby-dev:44872]
+
 Tue Nov 15 09:50:21 2011  NARUSE, Yui  <naruse@r...>
 
 	* regcomp.c (print_indent_tree): fix double printing of ENCLOSE_OPTION
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 33754)
+++ test/ruby/test_io.rb	(revision 33755)
@@ -1920,9 +1920,9 @@
 
   def test_fcntl_dupfd
     Tempfile.open(self.class.name) do |f|
-      fd = f.fcntl(Fcntl::F_DUPFD, 255)
+      fd = f.fcntl(Fcntl::F_DUPFD, 63)
       begin
-        assert_equal(fd, 255)
+        assert_equal(fd, 63)
       ensure
         IO.for_fd(fd).close
       end

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

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