YJIT: On test_bug_19316, only check the result

Because the `&` call checks for interrupts, the test was accidentally
timing dependent. Stop checking for exits.

[Bug #19921]

Reported-by: Vít Ondruch <vondruch@redhat.com>
Reported-by: Mamoru Tasaka <mtasaka@fedoraproject.org>
This commit is contained in:
Alan Wu 2023-10-20 13:00:52 -04:00 committed by GitHub
parent 1c48d15d6b
commit fab7018346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1160,7 +1160,7 @@ class TestYJIT < Test::Unit::TestCase
def test_bug_19316 def test_bug_19316
n = 2 ** 64 n = 2 ** 64
# foo's extra param and the splats are relevant # foo's extra param and the splats are relevant
assert_compiles(<<~'RUBY', result: [[n, -n], [n, -n]]) assert_compiles(<<~'RUBY', result: [[n, -n], [n, -n]], exits: :any)
def foo(_, a, b, c) def foo(_, a, b, c)
[a & b, ~c] [a & b, ~c]
end end