1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

runtests.pl: Fix perl call to include srcdir

- Use explicit include opt for perl calls.

Prior to this change some scripts couldn't find their dependencies.

At the top, perl is called using with the "-Isrcdir" option, and it
works:

https://github.com/curl/curl/blob/curl-7_63_0/tests/runtests.pl#L183

But on line 3868, that option is omitted. This caused problems for me,
as the symbol-scan.pl script in particular couldn't find its
dependencies properly:

https://github.com/curl/curl/blob/curl-7_63_0/tests/runtests.pl#L3868

This patch fixes that oversight by making calls to perl sub-shells
uniform.

Closes https://github.com/curl/curl/pull/3496
This commit is contained in:
Ladar Levison 2019-01-24 08:44:31 -06:00 committed by Jay Satiro
parent 39df4073e5
commit 53400f5a41

View File

@ -3865,7 +3865,7 @@ sub singletest {
if($cmdtype eq "perl") { if($cmdtype eq "perl") {
# run the command line prepended with "perl" # run the command line prepended with "perl"
$cmdargs ="$cmd"; $cmdargs ="$cmd";
$CMDLINE = "perl "; $CMDLINE = "$perl ";
$tool=$CMDLINE; $tool=$CMDLINE;
$disablevalgrind=1; $disablevalgrind=1;
} }