Bug#1114185: libweb-query-perl: FTBFS: dh_auto_test: error: make -j2 test TEST_VERBOSE=1 returned exit code 2
Étienne Mollier
emollier at debian.org
Fri Nov 6 16:25:17 GMT 2026
Control: tags -1 + confirmed
Greetings,
The relevant part of the build log looks like:
# Failed test at t/processing-instructions.t line 25.
# +---------+----+----------------+
# | GOT | OP | CHECK |
# +---------+----+----------------+
# | <UNDEF> | =~ | (?^:style.css) |
# +---------+----+----------------+
(If this table is too small, you can use the TABLE_TERM_SIZE=### env var to set a larger size, detected size is '74')
# Looks like you failed 1 test of 1.
# Failed test 'Web::Query::LibXML'
# at t/lib/WQTest.pm line 22.
# Looks like you failed 1 test of 3.
t/processing-instructions.t .........
# Seeded srand with seed '20250904' from local date.
1..3
ok 1 - use Web::Query;
# Subtest: Web::Query
1..0 # SKIP not working for Web::Query
ok 2 # skip not working for Web::Query
# Subtest: Web::Query::LibXML
not ok 1
1..1
not ok 3 - Web::Query::LibXML
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
(less 1 skipped subtest: 1 okay)
I believe the problem stems from somewhere in the map'ing that
occurs in the sub as_html from lib/Web/Query.pm:
sub as_html {
my $self = shift;
my %args = @_;
my @html = map {
ref $_ ? ( $_->isa('HTML::TreeBuilder::XPath::TextNode') || $_->isa('HTML::TreeBuilder::XPath::CommentNode' ) )
? $_->getValue
: $_->as_HTML( q{&<>'"}, $self->{indent}, {} )
: $_
} @{$self->{trees}};
return join $args{join}, @html if defined $args{join};
return wantarray ? @html : $html[0];
}
Something makes the return value undefined and as far as I could
trace, the code falls through down the last $html[0] value being
returned. I'm afraid I have not diagnosed further what the root
cause is for now, but that might ring some bells to more
proficient Perl developpers or upstream.
In hope this helps,
--
.''`. Étienne Mollier <emollier at debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from my alarm clock
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20261106/585401b9/attachment.sig>
More information about the pkg-perl-maintainers
mailing list