]> granicus.if.org Git - curl/commitdiff
runtests.pl: Fix perl call to include srcdir
authorLadar Levison <ladar@users.noreply.github.com>
Thu, 24 Jan 2019 14:44:31 +0000 (08:44 -0600)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 4 Feb 2019 18:02:29 +0000 (13:02 -0500)
- 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

tests/runtests.pl

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