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

ruby-changes:25927

From: nobu <ko1@a...>
Date: Thu, 29 Nov 2012 17:11:19 +0900 (JST)
Subject: [ruby-changes:25927] nobu:r37984 (trunk): test_io_wait.rb: Bug #7420

nobu	2012-11-29 17:11:10 +0900 (Thu, 29 Nov 2012)

  New Revision: 37984

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

  Log:
    test_io_wait.rb: Bug #7420
    
    * test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe):
      Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN.  patch by
      phasis68 (Heesob Park) at [ruby-core:49894].  [Bug #7420]

  Modified files:
    trunk/ChangeLog
    trunk/test/io/wait/test_io_wait.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37983)
+++ ChangeLog	(revision 37984)
@@ -1,3 +1,9 @@
+Thu Nov 29 17:11:06 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe):
+	  Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN.  patch by
+	  phasis68 (Heesob Park) at [ruby-core:49894].  [Bug #7420]
+
 Thu Nov 29 17:03:38 2012  Eric Hodel  <drbrain@s...>
 
 	* lib/rubygems/test_case.rb:  Determine path to certificates to avoid
Index: test/io/wait/test_io_wait.rb
===================================================================
--- test/io/wait/test_io_wait.rb	(revision 37983)
+++ test/io/wait/test_io_wait.rb	(revision 37984)
@@ -101,7 +101,7 @@
     buf = " " * 4096
     begin
       written += @w.write_nonblock(buf)
-    rescue Errno::EAGAIN
+    rescue Errno::EAGAIN, Errno::EWOULDBLOCK
       return written
     end while true
   end

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

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