Skip to content

Commit c0ecf3b

Browse files
committed
test: pend the LIBXML_LOADED_VERSION test on freebsd
Related to #2506
1 parent ba7a28c commit c0ecf3b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/test_version.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ def test_version_info_for_libxml
6060
major = Regexp.last_match(1).to_i
6161
minor = Regexp.last_match(2).to_i
6262
bug = Regexp.last_match(3).to_i
63-
assert_equal("#{major}.#{minor}.#{bug}", Nokogiri::VERSION_INFO["libxml"]["loaded"])
63+
if RbConfig::CONFIG["target_os"].include?("freebsd13") && Nokogiri::VersionInfo.instance.libxml2_using_system?
64+
pending("https://github.com/sparklemotion/nokogiri/issues/2506") do
65+
assert_equal("#{major}.#{minor}.#{bug}", Nokogiri::VERSION_INFO["libxml"]["loaded"])
66+
end
67+
else
68+
assert_equal("#{major}.#{minor}.#{bug}", Nokogiri::VERSION_INFO["libxml"]["loaded"])
69+
end
6470

6571
assert(version_info["libxml"].key?("iconv_enabled"))
6672
assert(version_info["libxslt"].key?("datetime_enabled"))

0 commit comments

Comments
 (0)