diff options
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; |