aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-10-20 13:00:52 -0400
committerGitHub <noreply@github.com>2023-10-20 17:00:52 +0000
commitfab7018346488a693d34ea81f1e9d6fec476f06e (patch)
tree037c7da05b86f08d4d9b06b584d7b78f7c4d52e6 /test
parent1c48d15d6bdaa1f863e147165ba7052962119060 (diff)
downloadruby-fab7018346488a693d34ea81f1e9d6fec476f06e.tar.gz
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>
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_yjit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb
index 17c779af39..591a6c25ff 100644
--- a/test/ruby/test_yjit.rb
+++ b/test/ruby/test_yjit.rb
@@ -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