ruby-changes:33904
From: akr <ko1@a...>
Date: Sun, 18 May 2014 11:06:20 +0900 (JST)
Subject: [ruby-changes:33904] akr:r45985 (trunk): [DOC]
akr 2014-05-18 11:06:15 +0900 (Sun, 18 May 2014) New Revision: 45985 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45985 Log: [DOC] Modified files: trunk/ext/etc/etc.c trunk/test/etc/test_etc.rb Index: ext/etc/etc.c =================================================================== --- ext/etc/etc.c (revision 45984) +++ ext/etc/etc.c (revision 45985) @@ -782,7 +782,9 @@ etc_confstr(VALUE obj, VALUE arg) https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.c#L782 * The return value is an integer or nil. * nil means indefinite limit. (fpathconf() returns -1 but errno is not set.) * - * open("/") {|f| p f.pathconf(Etc::PC_NAME_MAX) } #=> 255 + * IO.pipe {|r, w| + * p w.pathconf(Etc::PC_PIPE_BUF) #=> 4096 + * } * */ static VALUE Index: test/etc/test_etc.rb =================================================================== --- test/etc/test_etc.rb (revision 45984) +++ test/etc/test_etc.rb (revision 45985) @@ -154,7 +154,7 @@ class TestEtc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/etc/test_etc.rb#L154 rescue ArgumentError end IO.pipe {|r, w| - val = r.pathconf(Etc::PC_PIPE_BUF) + val = w.pathconf(Etc::PC_PIPE_BUF) assert(val.nil? || val.kind_of?(Integer)) } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/