Commits

pa...@9ae0c189-cd1f-4510-a509-f4891f5cf20d  committed fcf455c

fix for change in behavior in libxml2-2.7.4

  • Participants
  • Parent commits 26856d3

Comments (0)

Files changed (1)

File t/44extent.t

 # change 'tests => 1' to 'tests => last_test_to_print';
 
 use Test;
-BEGIN { plan tests => 8 };
+BEGIN { plan tests => 7 };
 
 use warnings;
 use strict;
 $doc = $parser->parse_string($xml);
 ok( $doc->toString() eq $xml_out2 );
 
-my $called = 0;
-$parser->set_option( ext_ent_handler=>sub{ $called++ } );
+$parser->set_option( ext_ent_handler=>sub{ '' } );
 $parser->set_options({
   expand_entities => 0,
-  recover => 2,
 });
 $doc = $parser->parse_string($xml);
 ok( $doc->toString() eq $xml );
-ok( $called == 0 );
 
 foreach my $el ($doc->findnodes('/root/*')) {
   ok ($el->hasChildNodes);