diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-09-04 04:07:34 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-09-04 04:07:34 +0900 |
commit | 3f922f3b77f343394475c4603d4b885126ce6437 (patch) | |
tree | 132551d142021b1f94c6031cf171414da04bf4ed | |
parent | b52513e2a1ede39eef094e9e2cfa8710ce26e1f1 (diff) | |
download | ruby-3f922f3b77f343394475c4603d4b885126ce6437.tar.gz |
don't use toplevel return
Toplevel return is supported after Ruby 2.4, so don't use it
for older BASERUBY.
-rw-r--r-- | bootstraptest/test_ractor.rb | 7 |
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'] |