This is orcus issue #194: https://gitlab.com/orcus/orcus/-/issues/194 The attached change fixes orcus_test_xml_mapped test on hppa hardware: https://buildd.debian.org/status/fetch.php?pkg=liborcus&arch=hppa&ver=0.17.2-4&stamp=1698851675&raw=0 Regards, Dave Anglin --- Index: liborcus-0.17.2/src/orcus_test_xml_mapped.cpp =================================================================== --- liborcus-0.17.2.orig/src/orcus_test_xml_mapped.cpp +++ liborcus-0.17.2/src/orcus_test_xml_mapped.cpp @@ -66,9 +66,8 @@ void test_mapped_xml_import() { SRCDIR"/test/xml-mapped/nested-repeats-4", false }, }; - auto dump_xml_structure = [](std::string& dump_content, std::string& /*strm*/, const char* filepath, xmlns_context& cxt) + auto dump_xml_structure = [](std::string& dump_content, const file_content& content, xmlns_context& cxt) { - file_content content(filepath); dom::document_tree tree(cxt); tree.load(content.str()); ostringstream os; @@ -146,9 +145,10 @@ void test_mapped_xml_import() // input one. They should be identical. string dump_input, dump_output; - string strm_data_file, strm_out_file; // Hold the stream content in memory while the namespace context is being used. - dump_xml_structure(dump_input, strm_data_file, data_file.string().data(), cxt); - dump_xml_structure(dump_output, strm_out_file, out_file.data(), cxt); + // Hold the stream content in memory while the namespace context is being used. + file_content strm_data_file(data_file.string()), strm_out_file(out_file); + dump_xml_structure(dump_input, strm_data_file, cxt); + dump_xml_structure(dump_output, strm_out_file, cxt); assert(!dump_input.empty() && !dump_output.empty()); cout << dump_input << endl;
Attachment:
signature.asc
Description: PGP signature