Skip to content

Intermittent failure on duped pipe tests JDK 19+ #7909

@headius

Description

@headius

The following tests from CRuby fail intermittently on JDK 19+. I have not dug deep enough to know what is failing, nor bisected OpenJDK to find what commit changed this behavior.

def test_dup
pipe("utf-8:euc-jp",
proc do |w|
w << "\u3042"
w.close
end,
proc do |r|
r2 = r.dup
begin
assert_equal("\xA4\xA2".force_encoding("euc-jp"), r2.read)
ensure
r2.close
end
end)
end
def test_dup_undef
pipe("utf-8:euc-jp", { :undef=>:replace },
proc do |w|
w << "\uFFFD"
w.close
end,
proc do |r|
r2 = r.dup
begin
assert_equal("?", r2.read)
ensure
r2.close
end
end)
end

I have no theories. I will be excluding these on JDK 19 and higher for now but we need to investigate this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions