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 <[email protected]>
  • Loading branch information
tenderlove and flavorjones committed Jul 11, 2022
1 parent 2b82282 commit ab306bb
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 ab306bb

Please sign in to comment.