Subject: | [PATCH] Don't hardcode ENOENT |
MIME-Version: | 1.0 |
X-Mailer: | MIME-tools 5.504 (Entity 5.504) |
X-RT-Interface: | Web |
Message-ID: | <rt-4.0.18-4190-1473326481-751.0-0-0@rt.cpan.org> |
X-RT-Original-Encoding: | utf-8 |
Content-Type: | multipart/mixed; boundary="----------=_1473326481-4190-3" |
X-RT-Encrypt: | 0 |
X-RT-Sign: | 0 |
Content-Length: | 0 |
Content-Disposition: | inline |
Content-Type: | text/plain; charset="utf-8" |
Content-Transfer-Encoding: | binary |
Content-Length: | 190 |
The attached patch, provided by Pino Toscano of the Debian project, fixes a test failure on GNU/Hurd because on that platform, ENOENT is not 2. This fixes a regression between 2.11 and 2.12.
Subject: | file-path-errno.diff |
MIME-Version: | 1.0 |
Content-Type: | text/x-patch; name="file-path-errno.diff" |
X-Mailer: | MIME-tools 5.504 (Entity 5.504) |
Content-Disposition: | inline; filename="file-path-errno.diff" |
Content-Transfer-Encoding: | binary |
Content-Length: | 399 |
--- a/t/Path.t
+++ b/t/Path.t
@@ -8,6 +8,7 @@ use Config;
use Fcntl ':mode';
use lib 't/';
use FilePathTest;
+use Errno qw(:POSIX);
BEGIN {
use_ok('Cwd');
@@ -656,7 +657,7 @@ is(
{
my ($x, $message, $object, $expect, $rv, $arg, $error);
my ($k, $v, $second_error, $third_error);
- local $! = 2;
+ local $! = ENOENT;
$x = $!;
$message = 'message in a bottle';