diff options
author | Paul Smith <psmith@gnu.org> | 2022-02-26 17:19:42 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-02-27 17:47:42 -0500 |
commit | 1bc35a7ae729989f691a988bca1ef1f1940c99a5 (patch) | |
tree | bff89d5ed47fd98599df9f8f56fc9dc1cb60c634 /tests/run_make_tests.pl | |
parent | 8cdaabbf8e129fc15ee1456d4fce9d10bf4bad55 (diff) | |
download | make-git-1bc35a7ae729989f691a988bca1ef1f1940c99a5.tar.gz |
tests: Allow run_make_test() to avoid passing -f
We already use undef makefile strings to mean "re-use the previous
makefile", so if the string is empty we'll assume it means "don't
use a makefile at all" (don't add -f).
* tests/run_make_tests.pl (run_make_test): If the makefile string
is empty, don't create a makefile or add -f.
* tests/scripts/features/include: Change empty makefile to "\n".
* tests/scripts/misc/close_stdout: Ditto.
* tests/scripts/options/dash-r: Ditto.
Diffstat (limited to 'tests/run_make_tests.pl')
-rw-r--r-- | tests/run_make_tests.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index 7b613070..f64ff8f0 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -269,7 +269,7 @@ sub run_make_test defined $old_makefile or die "run_make_test(undef) invoked before run_make_test('...')\n"; $makefile = $old_makefile; - } else { + } elsif ($makestring) { if (! defined($makefile)) { $makefile = &get_tmpfile(); } |