Shlomi Fish avatar Shlomi Fish committed 613d0c4

Fix https://rt.cpan.org/Ticket/Display.html?id=69435 .

60error_prev_chain.t assumes $@ will be an object .

Comments (0)

Files changed (2)

         - "t/19die_on_invalid_utf8_rt_58848.t assumes errors will be objects:"
         - Thanks to TODDR.
         - Failed on older libxml2's.
+    - Add a skip for t/60error_prev_chain.t in case $@ is true but not a ref.
+        - https://rt.cpan.org/Ticket/Display.html?id=69435
+        - Thanks to TODDR.
+        - http://www.cpantesters.org/cpan/report/4ac00aae-a73f-11e0-84bd-8881cd42d09c
 
 1.79            Fri Jul  8 20:02:32 IDT 2011
     - t/46err_column.t : add a skip for a test for CentOS/RHEL 4:

t/60error_prev_chain.t

 
 no warnings 'recursion';
 
-use Test::More tests => 1;
+use Test::More;
 
 use XML::LibXML;
 
     my $err = $@;
     my $count = 0;
 
+    if( $err && !ref($err) ) {
+      plan skip_all => 'The local libxml library does not support errors as objects to $@';
+    }
+    plan tests => 1;
+
     while (defined($err) && $count < 200)
     {
         $err = $err->_prev();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.