mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-27 06:27:57 +00:00
* 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:
parent
35047f824a
commit
40277b8850
2 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue