develooper Front page | perl.perl5.porters | Postings from August 2001

[PATCH] io/tell.t doesn't chdir t

From:
Nicholas Clark
Date:
August 22, 2001 15:25
Subject:
[PATCH] io/tell.t doesn't chdir t
Message ID:
20010822232557.Y82818@plum.flirble.org
One can't run io/tell.t out of the perl build directory. :-(
This patch fixes this. [so now I can run a shell loop over t/io/*.t]

Nicholas Clark

--- t/io/tell.t.orig	Sat Jun 16 21:49:29 2001
+++ t/io/tell.t	Wed Aug 22 23:12:11 2001
@@ -2,6 +2,11 @@
 
 # $RCSfile: tell.t,v $$Revision$$Date$
 
+BEGIN {
+    chdir 't' if -d 't';
+    @INC = '../lib';
+}
+
 print "1..23\n";
 
 $TST = 'tst';



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About