Skip to content

Commit

Permalink
tests: include current directory when running test Perl commands
Browse files Browse the repository at this point in the history
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 curl#14097
Closes curl#14124
  • Loading branch information
vszakats committed Jul 9, 2024
1 parent 59bc9a1 commit efc2c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/globalconfig.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit efc2c51

Please sign in to comment.