Bug 18772 - t/ImportBatch.t generates warnings
Summary: t/ImportBatch.t generates warnings
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 10407
Blocks: 25515
  Show dependency treegraph
 
Reported: 2017-06-09 18:10 UTC by Lee Jamison
Modified: 2025-07-16 09:25 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 18772: Remove warnings from t/ImportBatch.t (2.33 KB, patch)
2025-07-16 09:25 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Jamison 2017-06-09 18:10:05 UTC
Running 'prove t/ImportBatch.t' outputs the following message:

t/ImportBatch.t .............................................. 1/3 Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.20.2/MARC/File/XML.pm line 399, <__ANONIO__> chunk 1.
Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.20.2/MARC/File/XML.pm line 399, <__ANONIO__> chunk 1.
Comment 1 Jonathan Druart 2025-07-16 09:25:36 UTC
Created attachment 184128 [details] [review]
Bug 18772: Remove warnings from t/ImportBatch.t

Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.20.2/MARC/File/XML.pm line 399, <__ANONIO__> chunk 1.

Those are 2 warnings coming from MARC::File::XML when called with
invalid XML.
We should not use Test::Warn as they are not expected and that may be
fixed upstream.