Shlomi Fish avatar Shlomi Fish committed 9f51ffa

Fix RT #86665 : tests failed in path that contained whitespace.

Comments (0)

Files changed (2)

     - Fix https://rt.cpan.org/Ticket/Display.html?id=88060
         - Use quoted version number in the SYNOPSIS.
         - Thanks to Philipp Gortan for the report.
+    - Apply a patch from Yuriy / YOREEK for test failures with a
+    directory component that contains whitespace.
+        - https://rt.cpan.org/Ticket/Display.html?id=86665
 
 2.0103          Thu 22 Aug 08:34:46 IDT 2013
     - Apply patch from Yuriy / YOREEK for test failures in t/40reader.t:

t/49callbacks_returning_undef.t

 use Test::More;
 use File::Spec;
 
+BEGIN
+{
+    # Part of the fix for https://rt.cpan.org/Ticket/Display.html?id=86665
+    delete $ENV{'XML_CATALOG_FILES'};
+}
+
 use XML::LibXML;
 
 if (! eval { require URI::file; } )
 
 my $match_ret = 1;
 $icb->register_callbacks( [
-        sub { my $to_ret = $match_ret; $match_ret = 0; return $to_ret; },
+        sub {
+            my $uri = shift;
+            # skip for XML catalogs in /etc/xml/
+            return 0 if $uri =~ m{^file:///etc/xml/};
+            my $to_ret = $match_ret; $match_ret = 0; return $to_ret;
+        },
         sub { return undef; },
         undef,
         undef
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.