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

ruby-changes:45821

From: naruse <ko1@a...>
Date: Sun, 12 Mar 2017 16:35:02 +0900 (JST)
Subject: [ruby-changes:45821] naruse:r57894 (ruby_2_4): merge revision(s) 57492:

naruse	2017-03-12 16:34:58 +0900 (Sun, 12 Mar 2017)

  New Revision: 57894

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57894

  Log:
    merge revision(s) 57492:
    
    test_queue.rb: fix portability
    
    * test/thread/test_queue.rb (test_queue_with_trap): fix
      portability.  use SIGINT instead of SIGUSR2 which is supported
      on not all platforms.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/test/thread/test_queue.rb
    branches/ruby_2_4/version.h
Index: ruby_2_4/version.h
===================================================================
--- ruby_2_4/version.h	(revision 57893)
+++ ruby_2_4/version.h	(revision 57894)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_4/version.h#L1
 #define RUBY_VERSION "2.4.0"
 #define RUBY_RELEASE_DATE "2017-03-12"
-#define RUBY_PATCHLEVEL 51
+#define RUBY_PATCHLEVEL 52
 
 #define RUBY_RELEASE_YEAR 2017
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_4/test/thread/test_queue.rb
===================================================================
--- ruby_2_4/test/thread/test_queue.rb	(revision 57893)
+++ ruby_2_4/test/thread/test_queue.rb	(revision 57894)
@@ -549,14 +549,14 @@ class TestQueue < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_4/test/thread/test_queue.rb#L549
   end
 
   def test_queue_with_trap
-    assert_in_out_err([], <<-INPUT, %w(USR2 USR2 exit), [])
+    assert_in_out_err([], <<-INPUT, %w(INT INT exit), [])
       q = Queue.new
-      trap(:USR2){
-        q.push 'USR2'
+      trap(:INT){
+        q.push 'INT'
       }
       Thread.new{
         loop{
-          Process.kill :USR2, $$
+          Process.kill :INT, $$
         }
       }
       puts q.pop

Property changes on: ruby_2_4
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r57492


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

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