Skip to content

Commit

Permalink
test_child_process: Mark scrubbing tests as pending
Browse files Browse the repository at this point in the history
Behaviour of `IO#set_encoding` has been changed as of Ruby 3.3.
We don't yet determine how to solve this issue, it might be better to
address in Ruby.

Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie authored and daipom committed Mar 11, 2024
1 parent 1a7ad12 commit 9796fd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/plugin_helper/test_child_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ def configure(conf)
end

test 'can scrub characters without exceptions' do
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('3.3.0')
pend "Behaviour of IO#set_encoding is changed as of Ruby 3.3 (#4058)"
end
m = Mutex.new
str = nil
Timeout.timeout(TEST_DEADLOCK_TIMEOUT) do
Expand All @@ -538,6 +541,9 @@ def configure(conf)
end

test 'can scrub characters without exceptions and replace specified chars' do
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('3.3.0')
pend "Behaviour of IO#set_encoding is changed as of Ruby 3.3 (#4058)"
end
m = Mutex.new
str = nil
replacement = "?"
Expand Down

0 comments on commit 9796fd3

Please sign in to comment.