Skip to content

Commit

Permalink
Fix simple test on platforms where compaction is not supported
Browse files Browse the repository at this point in the history
844588f made it so that trying to call
gc_verify_compaction_references on unsupported platform result in an
exception rather than a crash. Rescue the exception in a YJIT btest
that uses gc_verify_compaction_references.
  • Loading branch information
XrXr committed Oct 22, 2021
1 parent d09cb64 commit ba4bf8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstraptest/test_yjit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,11 @@ def foo
foo
foo
GC.verify_compaction_references(double_heap: true, toward: :empty)
begin
GC.verify_compaction_references(double_heap: true, toward: :empty)
rescue NotImplementedError
# in case compaction isn't supported
end
foo
}
Expand Down

0 comments on commit ba4bf8a

Please sign in to comment.