Skip to content

Commit c4c1275

Browse files
committed
Fix some libxml 2.14.0 testing regressions
1 parent 960fcdf commit c4c1275

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

t/26schema.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ subtest 'schema :network option', {
101101

102102
{
103103
my $schema = try { LibXML::Schema.new( location => $netfile ); };
104-
like $!, /'I/O error : Attempt to load network entity'/, 'Schema from file location with external import throws an exception.';
104+
like $!, /'I/O error :'.*' Attempt to load network entity'/, 'Schema from file location with external import throws an exception.';
105105
nok defined($schema), 'Schema from file location with external import and !network is not loaded.' ;
106106
}
107107
{
@@ -111,7 +111,7 @@ subtest 'schema :network option', {
111111
<xsd:import namespace="http://example.com/namespace" schemaLocation="http://example.com/xml.xsd"/>
112112
</xsd:schema>
113113
EOF
114-
like( $!, /'I/O error : Attempt to load network entity'/, 'Schema from buffer with external import throws an exception.' );
114+
like( $!, /'I/O error : '.*'Attempt to load network entity'/, 'Schema from buffer with external import throws an exception.' );
115115
nok( defined($schema), 'Schema from buffer with external import and !network is not loaded.' );
116116
}
117117

t/43options.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ subtest 'network options', {
124124
$parser.expand_entities = True;
125125
is-deeply $parser.network, False;
126126
try { $parser.load: string => $XML };
127-
like( $!, /'I/O error : Attempt to load network entity'/, 'Entity from network location throw error.' );
127+
like( $!, /'I/O error : '.*'Attempt to load network entity'/, 'Entity from network location throw error.' );
128128
nok $net-access, 'no attempted network access';
129129
$parser.network = True;
130130
try { $parser.load: string => $XML };

t/99doc-examples.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ subtest 'LibXML::Document' => {
157157
$doc.indexElements();
158158

159159
if $*DISTRO.is-win {
160-
skip 'todo - proper encoding/iconv on Winbdows', 2;
160+
skip 'todo - proper encoding/iconv on Windows', 2;
161161
}
162162
else {
163163
$doc = LibXML.createDocument( '1.0', "ISO-8859-15" );

0 commit comments

Comments
 (0)