]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: include current directory when running test Perl commands
authorViktor Szakats <commit@vsz.me>
Sun, 7 Jul 2024 12:30:57 +0000 (14:30 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 9 Jul 2024 02:13:04 +0000 (04:13 +0200)
Necessary to find generated files in the out-of-tree build directory.
E.g. `tests/configurehelp.pm`, for tests 1119 and 1167.

Before this patch macOS autotools builds were failing these two tests
due to falling back to the default preprocessor (`cpp`) instead of
the actual one configured. Then `cpp` failing to compile Apple SDK
headers referenced by curl headers.

Cherry-picked from #14097
Closes #14124

tests/globalconfig.pm

index 6d5e53237eaeab35e5f865b1c7ebc54160c6046e..ca78f5dbec7d0977ab4c411c5fa11d553b528182 100644 (file)
@@ -90,7 +90,7 @@ our $randseed = 0;    # random number seed
 # paths
 our $pwd = getcwd();  # current working directory
 our $srcdir = $ENV{'srcdir'} || '.';  # root of the test source code
-our $perl="perl -I$srcdir"; # invoke perl like this
+our $perl="perl -I. -I$srcdir"; # invoke perl like this
 our $LOGDIR="log";  # root of the log directory; this will be different for
                     # each runner in multiprocess mode
 our $LIBDIR="./libtest";