summaryrefslogtreecommitdiff
path: root/tests/run_make_tests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run_make_tests.pl')
-rwxr-xr-xtests/run_make_tests.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl
index 8452c6b..991e780 100755
--- a/tests/run_make_tests.pl
+++ b/tests/run_make_tests.pl
@@ -64,6 +64,14 @@ sub run_make_test
$makefile = &get_tmpfile();
}
+ # If either the makestring or the answer don't end in newlines, add one In
+ # the future should we allow an option to disable this? For now if you
+ # want to test handling with no newline you have to call the underlying
+ # functions directly.
+
+ $makestring =~ /\n$/s or $makestring .= "\n";
+ $answer =~ /\n$/s or $answer .= "\n";
+
# Replace @MAKEFILE@ with the makefile name and @MAKE@ with the path to
# make in both $makestring and $answer.