Module Name: src Committed By: rillig Date: Wed Dec 30 14:50:08 UTC 2020
Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: directive-endfor.exp directive-endfor.mk Log Message: make(1): add test for .endfor without corresponding .for To generate a diff of this commit: cvs rdiff -u -r1.1001 -r1.1002 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.258 -r1.259 src/usr.bin/make/unit-tests/Makefile cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/directive-endfor.exp \ src/usr.bin/make/unit-tests/directive-endfor.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/sets/lists/tests/mi diff -u src/distrib/sets/lists/tests/mi:1.1001 src/distrib/sets/lists/tests/mi:1.1002 --- src/distrib/sets/lists/tests/mi:1.1001 Wed Dec 30 13:15:07 2020 +++ src/distrib/sets/lists/tests/mi Wed Dec 30 14:50:08 2020 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.1001 2020/12/30 13:15:07 rillig Exp $ +# $NetBSD: mi,v 1.1002 2020/12/30 14:50:08 rillig Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -5042,6 +5042,8 @@ ./usr/tests/usr.bin/make/unit-tests/directive-elifnmake.mk tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/make/unit-tests/directive-else.exp tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/make/unit-tests/directive-else.mk tests-usr.bin-tests compattestfile,atf +./usr/tests/usr.bin/make/unit-tests/directive-endfor.exp tests-usr.bin-tests compattestfile,atf +./usr/tests/usr.bin/make/unit-tests/directive-endfor.mk tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/make/unit-tests/directive-endif.exp tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/make/unit-tests/directive-endif.mk tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/make/unit-tests/directive-error.exp tests-usr.bin-tests compattestfile,atf Index: src/usr.bin/make/unit-tests/Makefile diff -u src/usr.bin/make/unit-tests/Makefile:1.258 src/usr.bin/make/unit-tests/Makefile:1.259 --- src/usr.bin/make/unit-tests/Makefile:1.258 Tue Dec 29 01:45:06 2020 +++ src/usr.bin/make/unit-tests/Makefile Wed Dec 30 14:50:08 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.258 2020/12/29 01:45:06 rillig Exp $ +# $NetBSD: Makefile,v 1.259 2020/12/30 14:50:08 rillig Exp $ # # Unit tests for make(1) # @@ -153,6 +153,7 @@ TESTS+= directive-elifmake TESTS+= directive-elifndef TESTS+= directive-elifnmake TESTS+= directive-else +TESTS+= directive-endfor TESTS+= directive-endif TESTS+= directive-error TESTS+= directive-export Added files: Index: src/usr.bin/make/unit-tests/directive-endfor.exp diff -u /dev/null src/usr.bin/make/unit-tests/directive-endfor.exp:1.1 --- /dev/null Wed Dec 30 14:50:08 2020 +++ src/usr.bin/make/unit-tests/directive-endfor.exp Wed Dec 30 14:50:08 2020 @@ -0,0 +1,4 @@ +make: "directive-endfor.mk" line 9: for-less endfor +make: Fatal errors encountered -- cannot continue +make: stopped in unit-tests +exit status 1 Index: src/usr.bin/make/unit-tests/directive-endfor.mk diff -u /dev/null src/usr.bin/make/unit-tests/directive-endfor.mk:1.1 --- /dev/null Wed Dec 30 14:50:08 2020 +++ src/usr.bin/make/unit-tests/directive-endfor.mk Wed Dec 30 14:50:08 2020 @@ -0,0 +1,9 @@ +# $NetBSD: directive-endfor.mk,v 1.1 2020/12/30 14:50:08 rillig Exp $ +# +# Test for the directive .endfor, which ends a .for loop. +# +# See also: +# directive-for.mk + +# An .endfor without a corresponding .for is a parse error. +.endfor