Actions
Bug #19254
closedEnabling YJIT configuration option breaks rspec-core test suite
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.0dev (2022-12-23 master c5eefb7f37) [x86_64-linux]
Description
In preparation for Ruby 3.2, we have enabled YJIT in Fedora:
Since that moment, rspec-core test suite started to fail (see the attached log for all details):
... snip ...
1) RSpec::Core::Example#run memory leaks, see GH-321, GH-1921 releases references to the examples / their ivars
Failure/Error: expect(get_all.call).to eq opts.fetch(:post_gc)
expected: []
got: ["after_all", "before_all"]
(compared using ==)
# ./spec/rspec/core/example_spec.rb:469:in `expect_gc'
# ./spec/rspec/core/example_spec.rb:492:in `block (4 levels) in <top (required)>'
# ./spec/support/sandboxing.rb:16:in `block (3 levels) in <top (required)>'
# ./spec/support/sandboxing.rb:7:in `block (2 levels) in <top (required)>'
Finished in 8.98 seconds (files took 0.47612 seconds to load)
2209 examples, 1 failure, 4 pending
Please note that the YJIT was not enabled during runtime, just the support was enabled. Disabling the YJIT supports makes the test case pass.
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0