-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- myldr/mktmpdir.c: par_setup_libpath() sets the value of environment variable $Config{ldlibpthname} for the (inner) packed executable, but some perl distributions (e.g. Strawberry) do not specify $Config{ldlibpthname}. Hardwire "PATH" for MSWin32 and otherwise complain if this Config is undefined. - add t/85-ldlibpthname.t: check that the value of the environment variable for searching for DLLs, $ENV{$Config{ldlibpthname}}, starts with ithe cache directory, $ENV{PAR_TEMP}
- Loading branch information
Showing
7 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/perl -w | ||
|
||
use strict; | ||
use Config; | ||
use Data::Dumper; | ||
|
||
use Test::More; | ||
require "./t/utils.pl"; | ||
|
||
my $ldlibpthname = $^O eq 'MSWin32' ? "PATH" : $Config{ldlibpthname}; | ||
plan skip_all => "No \$Config{ldlibpthname} specified" unless $ldlibpthname; | ||
|
||
plan tests => 3; | ||
|
||
my $exe = pp_ok(-e => <<"..."); | ||
use Data::Dumper; | ||
my \$data = { | ||
par_temp => \$ENV{PAR_TEMP}, | ||
ldlibpth => \$ENV{$ldlibpthname}, | ||
}; | ||
print Data::Dumper->new([\$data], ['data'])->Indent(1)->Useqq(1)->Dump(); | ||
... | ||
|
||
my ($out) = run_ok($exe); | ||
our $data; | ||
eval $out; | ||
ok($data->{ldlibpth} =~ /^\Q$data->{par_temp}\E($|\Q$Config{path_sep}\E)/, | ||
"PAR_TEMP is first item in $ldlibpthname as seen by packed executable") | ||
or diag($out); | ||
|
||
|