File: suppress_test_warning.patch

package info (click to toggle)
libmarc-xml-perl 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 248 kB
  • ctags: 27
  • sloc: xml: 1,162; perl: 349; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: automatic testing shows a strange warning, which is intentional
 Patch suppresses output of warning, as it confuses packagers.
 .
 Not forwarded, as output seems intentional (might be leftover from
 development, though).
Author: Florian Schlichting <fsfs@debian.org>
Forwarded: not-needed

--- a/t/error-handling.t
+++ b/t/error-handling.t
@@ -10,7 +10,6 @@
 my $r;
 eval { $r = MARC::Record->new_from_xml($xml, 'UTF-8'); };
 if ($@) {
-    diag($@);
     ok($@ =~ /MARCXML document has no record element/, 'failed with sensible exception message');
 } else {
     fail('should have thrown an exception trying to parse XML from t/invalid.xml');