Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622986

Summary: dev-perl/MARC-File-XML-1.0.5-r1 fails tests ( Failed test 'should have refused to parse MARCXML record containing external entitities, but did not )
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: CONFIRMED ---    
Severity: normal CC: toralf
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://rt.cpan.org/Public/Bug/Display.html?id=131495
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 797460    
Bug Blocks: 300119    

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-06-29 04:38:07 UTC
The nature of this test is a bit troubling, and it might be to do with some of the magic in XML backend swapping. Need to look into it.

make -j3 test TEST_VERBOSE=0
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/batch-ns.t ........... 18/23 Use of uninitialized value in concatenation (.) or string at /var/tmp/portage/dev-perl/MARC-XML-1.0.3/work/MARC-XML-1.0.3/blib/lib/MARC/File/XML.pm line 397, <__ANONIO__> chunk 21.
t/batch-ns.t ........... ok
t/batch.t .............. 1/23 Use of uninitialized value in concatenation (.) or string at /var/tmp/portage/dev-perl/MARC-XML-1.0.3/work/MARC-XML-1.0.3/blib/lib/MARC/File/XML.pm line 397, <__ANONIO__> chunk 21.
t/batch.t .............. ok
t/empty-record.t ....... ok 
t/encode.t ............. ok 
t/error-handling.t ..... # MARCXML document has no record element at t/error-handling.t line 11.
t/error-handling.t ..... ok 
t/escape.t ............. ok  
t/external-entities.t .. 1/2
#   Failed test 'should have refused to parse MARCXML record containing external entitities, but did not'
#   at t/external-entities.t line 64.
# Looks like you failed 1 test of 2.
t/external-entities.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/namespace.t .......... ok 
t/parser.t ............. ok 
t/subfield0.t .......... ok 

Test Summary Report
-------------------
t/external-entities.t (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=10, Tests=80,  2 wallclock secs ( 0.07 usr  0.01 sys +  1.63 cusr  0.18 csys =  1.89 CPU)
Result: FAIL
Failed 1/10 test programs. 1/80 subtests failed.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-06-10 06:51:07 UTC
*** Bug 647882 has been marked as a duplicate of this bug. ***
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2021-10-08 23:20:52 UTC
dev-perl/MARC-Charset doesnt build right now, bug 797460. That needs to be fixed first.
Comment 3 Agostino Sarubbo gentoo-dev 2022-08-13 17:39:29 UTC
tinderbox_musl has reproduced this issue with version 1.0.5-r1 - Updating summary.