summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-26 13:56:51 -0400
committerPaul Smith <psmith@gnu.org>2013-05-26 13:56:51 -0400
commit119c5dd2b3027f621dd399b85eea9b01842edbc3 (patch)
tree39d1b331130d7371dfe91677afd979e229b19af3 /tests
parent64c1d0740cb38b848b5605f8181015ef5a1e3839 (diff)
downloadmake-119c5dd2b3027f621dd399b85eea9b01842edbc3.tar.gz
[SV #39035] Compare OUT to the beginning of the OUT var/func, not IN.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/scripts/misc/bs-nl22
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 20c770e2..1f93930f 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-26 Paul Smith <psmith@gnu.org>
+
+ * scripts/misc/bs-nl: Test for Savannah bug #39035.
+
2013-05-22 Paul Smith <psmith@gnu.org>
* scripts/options/dash-n: Fix results after MAKEFLAGS fixes.
diff --git a/tests/scripts/misc/bs-nl b/tests/scripts/misc/bs-nl
index e27a3f75..aa7661ea 100644
--- a/tests/scripts/misc/bs-nl
+++ b/tests/scripts/misc/bs-nl
@@ -99,4 +99,26 @@ var = he\
var:;@echo '|$(var)|'!,
'', "|he llo|");
+# Savannah #39035: handle whitespace in call
+run_make_test(q!
+f = echo $(1)
+t:; @$(call f,"a \
+ b"); \
+ $(call f,"a \
+ b")
+!,
+ '', "a b\na b\n");
+
+# Savannah #38945: handle backslash CRLF
+# We need our own makefile so we can set binmode
+my $m1 = get_tmpfile();
+open(MAKEFILE, "> $m1");
+binmode(MAKEFILE);
+print MAKEFILE "FOO = foo \\\r\nbar\nall: ; \@echo \$(FOO)\n";
+close(MAKEFILE);
+
+run_make_with_options($m1, '', get_logfile());
+compare_output("foo bar\n", get_logfile(1));
+
+
1;