mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
17401792fa
commit
c6c51569cb
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,10 @@ class TestIOConsoleInRactor < Test::Unit::TestCase
|
|||
path = $".find {|path| path.end_with?(ext)}
|
||||
assert_in_out_err(%W[-r#{path}], "#{<<~"begin;"}\n#{<<~'end;'}", ["true"], [])
|
||||
begin;
|
||||
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.console_mode
|
||||
|
@ -23,6 +27,10 @@ class TestIOConsoleInRactor < Test::Unit::TestCase
|
|||
|
||||
assert_in_out_err(%W[-r#{path}], "#{<<~"begin;"}\n#{<<~'end;'}", ["true"], [])
|
||||
begin;
|
||||
class Ractor
|
||||
alias value take
|
||||
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||
|
||||
console = IO.console
|
||||
$VERBOSE = nil
|
||||
r = Ractor.new do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue