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:
parent
1c48d15d6b
commit
fab7018346
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user