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 | 29d78ddb2842d75956fb9b2f50fa7032f6a28416 (patch) | |
tree | 18e57d8b1de21618a9f7071fa9f24879a2fc1e97 /tests/run_make_tests.pl | |
parent | 73e7767ffc14fad98dd2e78791a1237bcb3d6fe3 (diff) | |
download | gunmake-29d78ddb2842d75956fb9b2f50fa7032f6a28416.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 a4c4330..9b9104f 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; |