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

ruby-changes:62821

From: Koichi <ko1@a...>
Date: Fri, 4 Sep 2020 04:09:01 +0900 (JST)
Subject: [ruby-changes:62821] 3f922f3b77 (master): don't use toplevel return

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

From 3f922f3b77f343394475c4603d4b885126ce6437 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Fri, 4 Sep 2020 04:07:34 +0900
Subject: don't use toplevel return

Toplevel return is supported after Ruby 2.4, so don't use it
for older BASERUBY.

diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 8fa1ab1..96eedbf 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -57,8 +57,10 @@ assert_equal 'ok', %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L57
 ###
 ###
 # Ractor still has several memory corruption so skip huge number of tests
-return if ENV['GITHUB_WORKFLOW'] &&
-          ENV['GITHUB_WORKFLOW'] == 'Compilations'
+if ENV['GITHUB_WORKFLOW'] &&
+   ENV['GITHUB_WORKFLOW'] == 'Compilations'
+   # ignore the follow
+else
 
 # Ractor.select(*ractors) receives a values from a ractors.
 # It is similar to select(2) and Go's select syntax.
@@ -519,3 +521,4 @@ assert_equal 'nil', %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L521
   r.name.inspect
 }
 
+end # if !ENV['GITHUB_WORKFLOW']
-- 
cgit v0.10.2


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

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