Skip to content

Commit

Permalink
Enable passing Dtd error handling test
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Nov 25, 2024
1 parent fbf2cc3 commit 9545ddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions t/00dtd.t
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@ subtest 'doc with parameter entities' => {

subtest 'Dtd parse' => {
lives-ok {LibXML::Dtd.parse: :system-id<samples/ProductCatalog.dtd>};
if LibXML::Config.version >= v2.14.00 {
throws-like { LibXML::Dtd.parse: :system-id<samples/DoesNotExist.dtd> }, X::LibXML::Parser;
}
else {
skip "requires libxml2 >= v2.14.00";
}

throws-like { LibXML::Dtd.parse: :system-id<samples/DoesNotExist.dtd> }, X::LibXML::Parser;
}

2 changes: 1 addition & 1 deletion t/18docfree.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use Test;
use LibXML;

plan 1;
for 1 .. 1000 {
for ^1000 {
my LibXML::Document $doc .= new();
$doc.documentElement = $doc.createElement("node" ~ $_);
$doc .= new;
Expand Down

0 comments on commit 9545ddc

Please sign in to comment.