Skip to content

Commit 996bea3

Browse files
committed
✅🚧 Omit 1 DataLite test for TruffleRuby
This is a real edge-case... one which I included only for completeness. We _should not_ be making any recursive `Data` objects in `Net::IMAP`.
1 parent ddc5081 commit 996bea3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/net/imap/test_data_lite.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,14 @@ def test_inspect
154154
end
155155

156156
def test_recursive_inspect
157-
# TODO: TruffleRuby's Data fails this test with a StackOverflowError
157+
if Data.superclass == ::Object
158+
omit_if_truffleruby "TruffleRuby: format('%p', nil) returns '': " \
159+
"https://github.com/oracle/truffleruby/issues/3846"
160+
else
161+
omit_if_truffleruby "TruffleRuby: Data#inspect has stack overflow: " \
162+
"https://github.com/oracle/truffleruby/issues/3847"
163+
end
164+
158165
klass = Data.define(:value, :head, :tail) do
159166
def initialize(value:, head: nil, tail: nil)
160167
case tail

0 commit comments

Comments
 (0)