File: suppress_test_warning.patch

package info (click to toggle)
libmarc-xml-perl 0.93-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 224 kB
  • sloc: xml: 1,159; perl: 406; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 653 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 <fschlich@zedat.fu-berlin.de>
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($@ =~ /found MARCXML element/, 'failed with sensible exception message');
 } else {
     fail('should have thrown an exception trying to parse XML from t/invalid.xml');