Skip to content

Commit bef3983

Browse files
committed
ZJIT: Skip defined? tests on x86_64
1 parent 4229ab6 commit bef3983

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/ruby/test_zjit.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,9 @@ def +(_) = 100
984984
end
985985

986986
def test_defined_with_defined_values
987+
# Potentially related to https://github.com/Shopify/ruby/issues/646
988+
omit 'Test fails on x86_64 due to virtual register exhaustion' if /x86_64-linux/ =~ RUBY_PLATFORM
989+
987990
assert_compiles '["constant", "method", "global-variable"]', %q{
988991
class Foo; end
989992
def bar; end
@@ -996,6 +999,9 @@ def test = return defined?(Foo), defined?(bar), defined?($ruby)
996999
end
9971000

9981001
def test_defined_with_undefined_values
1002+
# Potentially related to https://github.com/Shopify/ruby/issues/646
1003+
omit 'Test fails on x86_64 due to virtual register exhaustion' if /x86_64-linux/ =~ RUBY_PLATFORM
1004+
9991005
assert_compiles '[nil, nil, nil]', %q{
10001006
def test = return defined?(Foo), defined?(bar), defined?($ruby)
10011007

0 commit comments

Comments
 (0)