* tests/run_make_tests.pl: Preserve $make_command

* tests/scripts/options/dash-n: Use $make_command.  This fixes
a spurious failure when running tests with valgrind enabled.
This commit is contained in:
Paul Smith 2016-03-23 01:26:55 -04:00
parent 35047f824a
commit 40277b8850
2 changed files with 3 additions and 1 deletions

View file

@ -465,6 +465,8 @@ sub set_more_defaults
# Set up for valgrind, if requested.
$make_command = $make_path;
if ($valgrind) {
my $args = $valgrind_args;
open(VALGRIND, "> valgrind.out")

View file

@ -92,7 +92,7 @@ EOF
close(MAKEFILE);
&run_make_with_options($topmake, '-n --no-print-directory', &get_logfile);
$answer = "$make_path -f \"$submake\" bar\ntouch inc\necho n --no-print-directory\n";
$answer = "$make_command -f \"$submake\" bar\ntouch inc\necho n --no-print-directory\n";
&compare_output($answer, &get_logfile(1));
unlink('inc');