Skip to content

Commit

Permalink
Only check compaction on platforms that support it
Browse files Browse the repository at this point in the history
Co-Authored-By: Mike Dalessio <mike.dalessio@gmail.com>
  • Loading branch information
tenderlove and flavorjones committed Jul 10, 2022
1 parent f26bac3 commit ff29c7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_compaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

describe "compaction" do
it "https://github.com/sparklemotion/nokogiri/pull/2579" do
skip unless GC.respond_to?(:verify_compaction_references)

big_doc = "<root>" + ("a".."zz").map { |x| "<#{x}>#{x}</#{x}>" }.join + "</root>"
doc = Nokogiri.XML(big_doc)

Expand Down

0 comments on commit ff29c7a

Please sign in to comment.