File: skip-test-with-nonfree-file

package info (click to toggle)
libxml-sax-perl 0.99%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 556 kB
  • ctags: 218
  • sloc: perl: 2,374; sh: 127; xml: 121; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Skip a test depending on a non-free input file (testfiles/xmltest.xml).
Bugs: #452872

--- a/t/16large.t
+++ b/t/16large.t
@@ -1,4 +1,4 @@
-use Test;
+use Test::More;
 BEGIN { plan tests => 3 }
 use XML::SAX::PurePerl;
 use XML::SAX::PurePerl::DebugHandler;
@@ -9,8 +9,10 @@
 my $parser = XML::SAX::PurePerl->new(Handler => $handler);
 ok($parser);
 
+SKIP: {
+skip "Non-free test input is not present in the Debian version", 1;
 my $time = time;
 $parser->parse_uri("testfiles/xmltest.xml");
 warn("parsed ", -s "testfiles/xmltest.xml", " bytes in ", time - $time, " seconds\n");
 ok(1);
-
+} # SKIP