From bf60bbd67a345c27fae513372dd05a8c019176f6 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 26 May 2013 13:56:51 -0400 Subject: [SV #39035] Compare OUT to the beginning of the OUT var/func, not IN. --- tests/ChangeLog | 4 ++++ tests/scripts/misc/bs-nl | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) (limited to 'tests') diff --git a/tests/ChangeLog b/tests/ChangeLog index 20c770e..1f93930 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2013-05-26 Paul Smith + + * scripts/misc/bs-nl: Test for Savannah bug #39035. + 2013-05-22 Paul Smith * scripts/options/dash-n: Fix results after MAKEFLAGS fixes. diff --git a/tests/scripts/misc/bs-nl b/tests/scripts/misc/bs-nl index e27a3f7..aa7661e 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; -- cgit v1.2.3