diff options
author | Paul Smith <psmith@gnu.org> | 2004-09-22 04:36:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-09-22 04:36:17 +0000 |
commit | b1c9d78342dd921fd16231d194973ecce5cbe8c2 (patch) | |
tree | 18e57d8b1de21618a9f7071fa9f24879a2fc1e97 /tests/run_make_tests.pl | |
parent | 3d0c657480a53d257dcb9943c78b1d1d1a2ce299 (diff) | |
download | make-b1c9d78342dd921fd16231d194973ecce5cbe8c2.tar.gz |
Update the test template. A few fixes in run_make_test().
Rename implicit_prereq_eval to patternrules, to be the start of a suite
of tests of pattern rules.
Diffstat (limited to 'tests/run_make_tests.pl')
-rwxr-xr-x | tests/run_make_tests.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index a4c4330c..9b9104f0 100755 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -76,7 +76,7 @@ sub run_make_test } # Make sure it ends in a newline. - $makestring =~ /\n$/s or $makestring .= "\n"; + $makestring && $makestring !~ /\n$/s and $makestring .= "\n"; # Replace @MAKEFILE@ with the makefile name and @MAKE@ with the path to # make @@ -91,7 +91,7 @@ sub run_make_test # Do the same processing on $answer as we did on $makestring. - $answer =~ /\n$/s or $answer .= "\n"; + $answer && $answer !~ /\n$/s and $answer .= "\n"; $answer =~ s/#MAKEFILE#/$makefile/g; $answer =~ s/#MAKE#/$make_name/g; |