From: Steve Hay Date: Thu, 16 Jun 2005 11:00:19 +0000 (+0000) Subject: Give op/taint.t a helping hand for Borland compiler on Win32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f68313a1841936a12d884ab4c096219ae771c600;p=p5sagit%2Fp5-mst-13.2.git Give op/taint.t a helping hand for Borland compiler on Win32 p4raw-id: //depot/perl@24867 --- diff --git a/t/op/taint.t b/t/op/taint.t index 26f9587..119e419 100755 --- a/t/op/taint.t +++ b/t/op/taint.t @@ -134,6 +134,23 @@ my $TEST = catfile(curdir(), 'TEST'); { $ENV{'DCL$PATH'} = '' if $Is_VMS; + if ($Is_MSWin32 && $Config{ccname} =~ /bcc32/ && ! -f 'cc3250mt.dll') { + my $bcc_dir; + foreach my $dir (split /$Config{path_sep}/, $ENV{PATH}) { + if (-f "$dir/cc3250mt.dll") { + $bcc_dir = $dir and last; + } + } + if (defined $bcc_dir) { + require File::Copy; + File::Copy::copy("$bcc_dir/cc3250mt.dll", '.') or + die "$0: failed to copy cc3250mt.dll: $!\n"; + eval q{ + END { unlink "cc3250mt.dll" } + }; + } + } + $ENV{PATH} = ''; delete @ENV{@MoreEnv}; $ENV{TERM} = 'dumb';