summaryrefslogtreecommitdiff
path: root/t/op/taint.t
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-06-16 11:00:19 +0000
committerSteve Hay <SteveHay@planit.com>2005-06-16 11:00:19 +0000
commitf68313a1841936a12d884ab4c096219ae771c600 (patch)
tree7513f133f47dc8144c91443b2638d12661c25913 /t/op/taint.t
parent7a67865adbea98917830ba110adf80e1a4ee46ab (diff)
downloadperl-f68313a1841936a12d884ab4c096219ae771c600.tar.gz
Give op/taint.t a helping hand for Borland compiler on Win32
p4raw-id: //depot/perl@24867
Diffstat (limited to 't/op/taint.t')
-rwxr-xr-xt/op/taint.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/op/taint.t b/t/op/taint.t
index 26f9587e85..119e419164 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';