Package: src:r-cran-xml
Version: 1.4.0-1
Severity: serious
Tags: sid forky
r-cran-xml autopkg tests fail with libxml2 2.15.x, one test likely needs
adjustments ...
this is blocking the migration of libxml2.
43s autopkgtest [09:32:26]: test run-unit-test: [-----------------------
43s BEGIN TEST testthat.R
44s
44s R version 4.5.1 (2025-06-13) -- "Great Square Root"
44s Copyright (C) 2025 The R Foundation for Statistical Computing
44s Platform: x86_64-pc-linux-gnu
44s
44s R is free software and comes with ABSOLUTELY NO WARRANTY.
44s You are welcome to redistribute it under certain conditions.
44s Type 'license()' or 'licence()' for distribution details.
44s
44s R is a collaborative project with many contributors.
44s Type 'contributors()' for more information and
44s 'citation()' on how to cite R or R packages in publications.
44s
44s Type 'demo()' for some demos, 'help()' for on-line help, or
44s 'help.start()' for an HTML browser interface to help.
44s Type 'q()' to quit R.
44s
44s > # This file is part of the standard setup for testthat.
44s > # It is recommended that you do not modify it.
44s > #
44s > # Where should you do additional test configuration?
44s > # Learn more about the roles of various files in:
44s > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
44s > # * https://testthat.r-lib.org/articles/special-files.html
44s >
44s > library(testthat)
44s > library(xml2)
44s >
44s > is_solaris <- tolower(Sys.info()[["sysname"]]) == "sunos"
44s >
44s > if (!is_solaris) {
44s + test_check("xml2")
44s + }
44s This is libxml2 version 2.14.5
47s [ FAIL 1 | WARN 0 | SKIP 21 | PASS 373 ]
47s
47s ══ Skipped tests (21)
══════════════════════════════════════════════════════════
47s • how to test error with `check_installed()`? (1):
'test-xml_parse.R:2:3'
47s • httpbin is unreliable (2): 'test-xml_parse.R:68:3',
'test-xml_parse.R:77:3'
47s • libxml2-dependent (1): 'test-xml_url.R:15:3'
47s • On CRAN (17): 'test-xml_attr.R:103:3', 'test-xml_children.R:14:3',
47s 'test-xml_document.R:4:3', 'test-xml_find.R:65:3',
'test-xml_find.R:91:3',
47s 'test-xml_find.R:109:3', 'test-xml_find.R:137:3',
'test-xml_name.R:32:3',
47s 'test-xml_node.R:4:3', 'test-xml_nodeset.R:79:3',
'test-xml_parse.R:12:3',
47s 'test-xml_parse.R:34:3', 'test-xml_parse.R:109:3',
47s 'test-xml_structure.R:35:3', 'test-xml_write.R:6:3',
'test-xml_write.R:78:3',
47s 'test-xml_write.R:96:3'
47s
47s ══ Failed tests
════════════════════════════════════════════════════════════════
47s ── Failure ('test-xml_write.R:127:3'): write_html work with html
input ─────────
47s readChar(file, 1000L) (`actual`) not identical to "<!DOCTYPE html
PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"
\"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><head>\n<meta
http-equiv=\"Content-Type\" content=\"text/html;
charset=UTF-8\">\n<title>Foo</title>\n</head></html>\n" (`expected`).
47s
47s lines(actual) vs lines(expected)
47s "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"
\"http://www.w3.org/TR/REC-html40/loose.dtd\">"
47s "<html><head>"
47s - "<meta charset=\"UTF-8\">"
47s + "<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=UTF-8\">"
47s "<title>Foo</title>"
47s "</head></html>"
47s ""
47s
47s [ FAIL 1 | WARN 0 | SKIP 21 | PASS 373 ]
48s Error: Test failures
48s Execution halted