Toplevel return is supported after Ruby 2.4, so don't use it
for older BASERUBY.
This commit is contained in:
Koichi Sasada 2020-09-04 04:07:34 +09:00
Родитель b52513e2a1
Коммит 3f922f3b77
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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']