aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-04 04:07:34 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-04 04:07:34 +0900
commit3f922f3b77f343394475c4603d4b885126ce6437 (patch)
tree132551d142021b1f94c6031cf171414da04bf4ed /bootstraptest
parentb52513e2a1ede39eef094e9e2cfa8710ce26e1f1 (diff)
downloadruby-3f922f3b77f343394475c4603d4b885126ce6437.tar.gz
don't use toplevel return
Toplevel return is supported after Ruby 2.4, so don't use it for older BASERUBY.
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ractor.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 8fa1ab1257..96eedbf90d 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -57,8 +57,10 @@ assert_equal 'ok', %q{
###
###
# 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{
r.name.inspect
}
+end # if !ENV['GITHUB_WORKFLOW']