Fri Apr 09 17:14:17 2010: Request 56442 was acted upon. Transaction: Ticket created by [email protected] Queue: PAR-Packer Subject: [patch] 30-current_exec.t fails when the path contains RE meta characters Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: [email protected] Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56442 >
Hi, When the path where PAR-Packer is extracted contains regular expression metta-characters (like for example +), 30-current_exec.t fails. Details are available at http://bugs.debian.org/577121 I am attaching the patch that fixes this, and which has been applied to the debian package of PAR-Packer. it would be nice if you can include it in a future release. Thanks.
>From d61a057ca49d33db816b8f4ea2a3716904679219 Mon Sep 17 00:00:00 2001 From: Niko Tyni <[email protected]> Date: Fri, 9 Apr 2010 22:28:50 +0300 Subject: [PATCH] Fix t/30-current_exec.t failing when cwd contains regexp metacharacters As TEMPDIR contains the build directory name, it may have regexp metacharacter like '+' in that need escaping. --- t/30-current_exec.t | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/t/30-current_exec.t b/t/30-current_exec.t index 4801543..d5baffe 100644 --- a/t/30-current_exec.t +++ b/t/30-current_exec.t @@ -43,7 +43,7 @@ ok( (-f $EXEC), "Created \"$EXEC\"" ) $ENV{PAR_GLOBAL_TMPDIR} = $TEMP; my $out_full = qx($EXEC); -ok( ($out_full =~ /PAR_TEMP = $TEMP/), "Respected PAR_GLOBAL_TMPDIR" ); +ok( ($out_full =~ /PAR_TEMP = \Q$TEMP\E/), "Respected PAR_GLOBAL_TMPDIR" ); my( $file, $path ) = fileparse( $EXEC ); -- 1.7.0.4
