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

ruby-changes:63231

From: Koichi <ko1@a...>
Date: Thu, 1 Oct 2020 10:43:32 +0900 (JST)
Subject: [ruby-changes:63231] bc23216e5a (master): stop Ractor test in test-all

https://git.ruby-lang.org/ruby.git/commit/?id=bc23216e5a

From bc23216e5a4204b8e626704c7277e9edc1708189 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Thu, 1 Oct 2020 08:55:08 +0900
Subject: stop Ractor test in test-all

Ractor changes the interpreter's running mode so now it should
not use in test-all process which running with many other tests.

Test with a separating process is one idea, but I'm not sure
the ruby/ostruct can use this trick.

diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index 7dd1ac6..1e69d79 100644
--- a/test/ostruct/test_ostruct.rb
+++ b/test/ostruct/test_ostruct.rb
@@ -300,6 +300,8 @@ class TC_OpenStruct < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ostruct/test_ostruct.rb#L300
     assert_equal 42, o.foo
   end
 
+=begin
+  # now Ractor should not use in test-all process
   def test_ractor
     obj1 = OpenStruct.new(a: 42, b: 42)
     obj1.c = 42
@@ -310,6 +312,7 @@ class TC_OpenStruct < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ostruct/test_ostruct.rb#L312
     end.take
     assert obj1.object_id == obj2.object_id
   end if defined?(Ractor)
+=end
 
   def test_legacy_yaml
     s = "--- !ruby/object:OpenStruct\ntable:\n  :foo: 42\n"
-- 
cgit v0.10.2


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

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