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

ruby-changes:31461

From: akr <ko1@a...>
Date: Tue, 5 Nov 2013 21:25:21 +0900 (JST)
Subject: [ruby-changes:31461] akr:r43540 (trunk): * test/ruby/test_thread.rb (test_thread_join_in_trap):

akr	2013-11-05 21:25:15 +0900 (Tue, 05 Nov 2013)

  New Revision: 43540

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

  Log:
    * test/ruby/test_thread.rb (test_thread_join_in_trap):
      Run the test in a different process.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_thread.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43539)
+++ ChangeLog	(revision 43540)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Nov  5 21:21:47 2013  Tanaka Akira  <akr@f...>
+
+	* test/ruby/test_thread.rb (test_thread_join_in_trap):
+	  Run the test in a different process.
+
 Tue Nov  5 20:14:32 2013  Masaya Tarui  <tarui@r...>
 
 	* gc.c (is_live_object): A hidden object may be a live object.
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 43539)
+++ test/ruby/test_thread.rb	(revision 43540)
@@ -725,6 +725,7 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L725
   end
 
   def test_thread_join_in_trap
+    assert_separately [], <<-'EOS'
     assert_nothing_raised{
       t = Thread.new{ sleep 0.2; Process.kill(:INT, $$) }
 
@@ -734,7 +735,9 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L735
 
       t.join
     }
+    EOS
 
+    assert_separately [], <<-'EOS'
     assert_equal(:normal_end,
                  begin
                    t = Thread.new{ sleep 0.2; Process.kill(:INT, $$); :normal_end }
@@ -745,6 +748,7 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L748
                    t.value
                  end
                  )
+    EOS
   end
 
   def test_thread_join_current

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

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