Module Name: src Committed By: rillig Date: Sun Aug 9 09:32:04 UTC 2020
Modified Files: src/usr.bin/make/unit-tests: modmisc.mk Log Message: make(1): add more tests for Cmd_Exec To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/usr.bin/make/unit-tests/modmisc.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/unit-tests/modmisc.mk diff -u src/usr.bin/make/unit-tests/modmisc.mk:1.40 src/usr.bin/make/unit-tests/modmisc.mk:1.41 --- src/usr.bin/make/unit-tests/modmisc.mk:1.40 Sun Aug 9 09:17:19 2020 +++ src/usr.bin/make/unit-tests/modmisc.mk Sun Aug 9 09:32:04 2020 @@ -1,4 +1,4 @@ -# $Id: modmisc.mk,v 1.40 2020/08/09 09:17:19 rillig Exp $ +# $Id: modmisc.mk,v 1.41 2020/08/09 09:32:04 rillig Exp $ # # miscellaneous modifier tests @@ -414,4 +414,16 @@ mod-range: .warning unexpected .endif +.if ${:!echo!} != "" +.warning A newline at the end of the output must be stripped. +.endif + +.if ${:!echo;echo!} != " " +.warning Only a single newline at the end of the output is stripped. +.endif + +.if ${:!echo;echo;echo;echo!} != " " +.warning Other newlines in the output are converted to spaces. +.endif + # end mod-shell