From 6609ba05141a8e95e4c0b7db2579d85b1e35d074 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 3 Jun 2025 16:00:58 +0900 Subject: [PATCH] [ruby/io-wait] Alias value or join to take in old Ruby https://github.com/ruby/io-wait/commit/cf84aea70d --- test/io/wait/test_ractor.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/io/wait/test_ractor.rb b/test/io/wait/test_ractor.rb index d142fbf3b6..c77a29bff3 100644 --- a/test/io/wait/test_ractor.rb +++ b/test/io/wait/test_ractor.rb @@ -7,6 +7,10 @@ class TestIOWaitInRactor < Test::Unit::TestCase ext = "/io/wait.#{RbConfig::CONFIG['DLEXT']}" path = $".find {|path| path.end_with?(ext)} assert_in_out_err(%W[-r#{path}], <<-"end;", ["true"], []) + class Ractor + alias value take + end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders + $VERBOSE = nil r = Ractor.new do $stdout.equal?($stdout.wait_writable)