From 3f922f3b77f343394475c4603d4b885126ce6437 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 4 Sep 2020 04:07:34 +0900 Subject: [PATCH] don't use toplevel return Toplevel return is supported after Ruby 2.4, so don't use it for older BASERUBY. --- bootstraptest/test_ractor.rb | 7 +++++-- 1 file 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']