Skip a test depending on a non-free input file (testfiles/xmltest.xml)
Origin: vendor Bug-Debian: https://bugs.debian.org/452872 Gbp-Pq: Name skip-test-with-nonfree-file
This commit is contained in:
parent
8dc79bcc7a
commit
56dd431ba8
|
@ -1,4 +1,4 @@
|
||||||
use Test;
|
use Test::More;
|
||||||
BEGIN { plan tests => 3 }
|
BEGIN { plan tests => 3 }
|
||||||
use XML::SAX::PurePerl;
|
use XML::SAX::PurePerl;
|
||||||
use XML::SAX::PurePerl::DebugHandler;
|
use XML::SAX::PurePerl::DebugHandler;
|
||||||
|
@ -9,8 +9,10 @@ ok($handler);
|
||||||
my $parser = XML::SAX::PurePerl->new(Handler => $handler);
|
my $parser = XML::SAX::PurePerl->new(Handler => $handler);
|
||||||
ok($parser);
|
ok($parser);
|
||||||
|
|
||||||
|
SKIP: {
|
||||||
|
skip "Non-free test input is not present in the Debian version", 1;
|
||||||
my $time = time;
|
my $time = time;
|
||||||
$parser->parse_uri("testfiles/xmltest.xml");
|
$parser->parse_uri("testfiles/xmltest.xml");
|
||||||
warn("parsed ", -s "testfiles/xmltest.xml", " bytes in ", time - $time, " seconds\n");
|
warn("parsed ", -s "testfiles/xmltest.xml", " bytes in ", time - $time, " seconds\n");
|
||||||
ok(1);
|
ok(1);
|
||||||
|
} # SKIP
|
||||||
|
|
Loading…
Reference in New Issue