From efc2c5184d008fe2e5910fd03263e1ab0331d4e6 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 7 Jul 2024 14:30:57 +0200 Subject: [PATCH] tests: include current directory when running test Perl commands 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/globalconfig.pm b/tests/globalconfig.pm index 6d5e53237eaeab..ca78f5dbec7d09 100644 --- a/tests/globalconfig.pm +++ b/tests/globalconfig.pm @@ -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";