[PATCH] Fix t/30-current_exec.t failing when cwd contains regexp metacharacters

Niko Tyni ntyni at debian.org
Fri Apr 9 19:28:50 UTC 2010


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


--0F1p//8PRICkK4MW--



------------=_1270853479-6843-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 577121-close) by bugs.debian.org; 9 Apr 2010 22:49:42 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on busoni.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 88; hammy, 150; neutral, 108; spammy,
	1. spammytokens:0.997-1--6905 hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*RU:128.148.34.103, 0.000-+--H*rp:D*ftp-master.debian.org,
	0.000-+--HX-DAK:process-upload, 0.000-+--UD:diff.gz
X-Spam-Status: No, score=-11.6 required=4.0 tests=AWL,BAYES_00,FROMDEVELOPER,
	FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,IMPRONONCABLE_1,IMPRONONCABLE_2,
	MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2,PGPSIGNATURE,
	PHONENUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Return-path: <envelope at ftp-master.debian.org>
Received: from ries.debian.org ([128.148.34.103])
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=ries.debian.org,EMAIL=hostmaster at ries.debian.org (verified)
	by busoni.debian.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69)
	(envelope-from <envelope at ftp-master.debian.org>)
	id 1O0N1C-0001Z0-Mq
	for 577121-close at bugs.debian.org; Fri, 09 Apr 2010 22:49:42 +0000
Received: from dak by ries.debian.org with local (Exim 4.69)
	(envelope-from <envelope at ftp-master.debian.org>)
	id 1O0N1B-00085R-FP; Fri, 09 Apr 2010 22:49:41 +0000
From: Damyan Ivanov <dmn at debian.org>
To: 577121-close at bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: libpar-packer-perl
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Subject: Bug#577121: fixed in libpar-packer-perl 1.002-2
Message-Id: <E1O0N1B-00085R-FP at ries.debian.org>
Sender: Archive Administrator <dak at ries.debian.org>
Date: Fri, 09 Apr 2010 22:49:41 +0000

Source: libpar-packer-perl
Source-Version: 1.002-2

We believe that the bug you reported is fixed in the latest version of
libpar-packer-perl, which is due to be installed in the Debian FTP archive:

libpar-packer-perl_1.002-2.diff.gz
  to main/libp/libpar-packer-perl/libpar-packer-perl_1.002-2.diff.gz
libpar-packer-perl_1.002-2.dsc
  to main/libp/libpar-packer-perl/libpar-packer-perl_1.002-2.dsc
libpar-packer-perl_1.002-2_amd64.deb
  to main/libp/libpar-packer-perl/libpar-packer-perl_1.002-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 577121 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Damyan Ivanov <dmn at debian.org> (supplier of updated libpar-packer-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 10 Apr 2010 00:01:18 +0300
Source: libpar-packer-perl
Binary: libpar-packer-perl
Architecture: source amd64
Version: 1.002-2
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Changed-By: Damyan Ivanov <dmn at debian.org>
Description: 
 libpar-packer-perl - utility for creating PAR archives and stand-alone executables
Closes: 577121
Changes: 
 libpar-packer-perl (1.002-2) unstable; urgency=low
 .
   * apply patch from Niko Tyni fixing tests when build directory contains
     regular expression metacharacters. Closes: #577121
   * Standards-Version: 3.8.4 (no changes needed)
Checksums-Sha1: 
 3675645410c4c7597980d39f80dca7dc77bc638c 2294 libpar-packer-perl_1.002-2.dsc
 b42d1f4a8a7c60a0b52147d872ec1a4b45a10c2a 6905 libpar-packer-perl_1.002-2.diff.gz
 87b05dadc23a03cc6ca575400943d5bab4397c9d 1807374 libpar-packer-perl_1.002-2_amd64.deb
Checksums-Sha256: 
 8112b99ef864e8838c5b96dc4d83fe0d93e28390ff2047a3024f99dac5a0ae82 2294 libpar-packer-perl_1.002-2.dsc
 a725b0c22b3f126fd452783a807c4d5e0e1e20ad4c3387d440ee9bcf55011a31 6905 libpar-packer-perl_1.002-2.diff.gz
 fbd5e103bdd009991116a06d28b6ae145ae663cc785632915f7da3cbdbb90928 1807374 libpar-packer-perl_1.002-2_amd64.deb
Files: 
 7ebcda7749467c7036be2c29edd1d9dc 2294 perl optional libpar-packer-perl_1.002-2.dsc
 81172969664ae561803f08f7a6b89bb7 6905 perl optional libpar-packer-perl_1.002-2.diff.gz
 305ee07aefa4b9286efb2628ebb7e931 1807374 perl optional libpar-packer-perl_1.002-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJLv51IAAoJEOQbTFV/DYC+9+MP/RfDjgLihiBpLW1H8ePEKVra
ZWdy68wmBdI6VM91mzmq/RyZKvgp9vvC5yFhhyb+fkQhZ50yZ/BIGOdBVi6YtyYF
o9DBWAskCexJpVivFUo1nSttEBEhFCaUmm7Y8QMshtQKORS4VOh/2GdCIk5tvEWa
zo2d9UHZ7Wm9rBqqnZuieIcqyyN3g5st7PQZqeAhtwPMJQDWvUM76CgzUWkR1qEC
qtH3WWymfDTCuQL7UANGtSum5hNjGGZFHvUfatNnMM6WGztZSmuMF/0uo3v51Y1G
EAiJtkaLLOkfnZ0ATFU5fr0xYsTTG+MZ6dQ28Fjwwm+wIXXzUpvZoGW8sJfnEfwc
RClGxMC8NtcNCkngFz24D21sUXuYtsDtWt5QXnge4ZmvXS4kyll6Fk/doLwCZetV
0QZyAlrJLSqioCbqLUhwIH6rbbcuhc+59EarQvouRN8b6X/TG2v6ZGPIG2AGHu8o
qrgydbEHP3qUA7cj/Zywo5F6sCYqaoFOmVU70KKN1aQfEInYe9cAS3DBtejFDc5/
qZGupoFBjcnoZiFPuMlSR9m7JA7g2W+HI9Ui0U7mhojxvtdplc+rY3AH02lEaMbo
RXUlBb9xQduFroDmvf+EJNSV8rpn4qE/ScjnT5aniZl31MhPqrazJCCXNBtZyCw9
pwhAZUONi628SM2WBVbU
=LZ7x
-----END PGP SIGNATURE-----



------------=_1270853479-6843-0--



More information about the pkg-perl-maintainers mailing list