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

ruby-changes:28498

From: usa <ko1@a...>
Date: Thu, 2 May 2013 12:34:27 +0900 (JST)
Subject: [ruby-changes:28498] usa:r40550 (trunk): * test/ruby/test_process.rb (TestProcess#test_no_curdir): maybe now

usa	2013-05-02 12:34:15 +0900 (Thu, 02 May 2013)

  New Revision: 40550

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

  Log:
    * test/ruby/test_process.rb (TestProcess#test_no_curdir): maybe now
      we can test it.
    
    * test/ruby/test_thread.rb (TestThread#test_thread_timer_and_interrupt):
      ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_process.rb
    trunk/test/ruby/test_thread.rb
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40549)
+++ ChangeLog	(revision 40550)
@@ -3,6 +3,12 @@ Thu May  2 11:32:22 2013  NAKAMURA Usaku https://github.com/ruby/ruby/blob/trunk/ChangeLog#L3
 	* win32/win32.c (poll_child_status): [experimental] set the cause of
 	  a child's death to status if its exitcode seems to be an error.
 
+	* test/ruby/test_process.rb (TestProcess#test_no_curdir): maybe now
+	  we can test it.
+
+	* test/ruby/test_thread.rb (TestThread#test_thread_timer_and_interrupt):
+	  ditto.
+
 Thu May  2 11:24:00 2013  Zachary Scott  <zachary@z...>
 
 	* lib/yaml.rb: nodoc EngineManager, add History doc #8344
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 40549)
+++ win32/win32.c	(revision 40550)
@@ -3927,6 +3927,7 @@ poll_child_status(struct ChildRecord *ch https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L3927
 		    {STATUS_FLOAT_UNDERFLOW,         SIGFPE},
 		    {STATUS_FLOAT_MULTIPLE_FAULTS,   SIGFPE},
 		    {STATUS_FLOAT_MULTIPLE_TRAPS,    SIGFPE},
+		    {STATUS_CONTROL_C_EXIT,          SIGINT},
 		    {0, 0}
 		};
 		int i;
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 40549)
+++ test/ruby/test_process.rb	(revision 40550)
@@ -1356,7 +1356,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1356
       }
       assert(status.success?, "[ruby-dev:38105]")
     }
-  end unless /mswin|bccwin|mingw/ =~ RUBY_PLATFORM
+  end
 
   def test_fallback_to_sh
     feature = '[ruby-core:32745]'
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 40549)
+++ test/ruby/test_thread.rb	(revision 40550)
@@ -743,12 +743,9 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L743
     end
     t1 = Time.now.to_f
     assert_equal(pid, s.pid, bug5757)
-    unless /mswin|mingw/ =~ RUBY_PLATFORM
-      # status of signal is not supported on Windows
-      assert_equal([false, true, false, Signal.list["INT"]],
-                   [s.exited?, s.signaled?, s.stopped?, s.termsig],
-                   "[s.exited?, s.signaled?, s.stopped?, s.termsig]")
-    end
+    assert_equal([false, true, false, Signal.list["INT"]],
+                 [s.exited?, s.signaled?, s.stopped?, s.termsig],
+                 "[s.exited?, s.signaled?, s.stopped?, s.termsig]")
     assert_in_delta(t1 - t0, 1, 1, bug5757)
   end
 

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

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