summaryrefslogtreecommitdiff
path: root/tests/run_make_tests.pl
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-09-22 04:36:17 +0000
committerPaul Smith <psmith@gnu.org>2004-09-22 04:36:17 +0000
commit29d78ddb2842d75956fb9b2f50fa7032f6a28416 (patch)
tree18e57d8b1de21618a9f7071fa9f24879a2fc1e97 /tests/run_make_tests.pl
parent73e7767ffc14fad98dd2e78791a1237bcb3d6fe3 (diff)
downloadgunmake-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-xtests/run_make_tests.pl4
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;