зеркало из https://github.com/github/ruby.git
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:
Родитель
1c48d15d6b
Коммит
fab7018346
|
@ -1160,7 +1160,7 @@ class TestYJIT < Test::Unit::TestCase
|
|||
def test_bug_19316
|
||||
n = 2 ** 64
|
||||
# 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)
|
||||
[a & b, ~c]
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче