Module Name:    src
Committed By:   rillig
Date:           Sun Jul 26 10:04:06 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: moderrs.exp moderrs.mk

Log Message:
make(1): add test about missing delimiters in :@ modifier

These error conditions have been broken since var.c 1.236 on 2020-07-03.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/moderrs.exp \
    src/usr.bin/make/unit-tests/moderrs.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/moderrs.exp
diff -u src/usr.bin/make/unit-tests/moderrs.exp:1.1 src/usr.bin/make/unit-tests/moderrs.exp:1.2
--- src/usr.bin/make/unit-tests/moderrs.exp:1.1	Thu Aug 21 13:44:51 2014
+++ src/usr.bin/make/unit-tests/moderrs.exp	Sun Jul 26 10:04:06 2020
@@ -13,4 +13,8 @@ VAR:S,V,v,=Thevariable
 Expect: Unclosed substitution for VAR (, missing)
 make: Unclosed substitution for VAR (, missing)
 VAR:S,V,v=
+Expect: errors about missing @ delimiter
+
+
+1 2 3
 exit status 0
Index: src/usr.bin/make/unit-tests/moderrs.mk
diff -u src/usr.bin/make/unit-tests/moderrs.mk:1.1 src/usr.bin/make/unit-tests/moderrs.mk:1.2
--- src/usr.bin/make/unit-tests/moderrs.mk:1.1	Thu Aug 21 13:44:51 2014
+++ src/usr.bin/make/unit-tests/moderrs.mk	Sun Jul 26 10:04:06 2020
@@ -1,4 +1,4 @@
-# $Id: moderrs.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
+# $Id: moderrs.mk,v 1.2 2020/07/26 10:04:06 rillig Exp $
 #
 # various modifier error tests
 
@@ -8,7 +8,7 @@ MOD_UNKN=Z
 MOD_TERM=S,V,v
 MOD_S:= ${MOD_TERM},
 
-all:	modunkn modunknV varterm vartermV modtermV
+all:	modunkn modunknV varterm vartermV modtermV modloop
 
 modunkn:
 	@echo "Expect: Unknown modifier 'Z'"
@@ -29,3 +29,9 @@ vartermV:
 modtermV:
 	@echo "Expect: Unclosed substitution for VAR (, missing)"
 	-@echo "VAR:${MOD_TERM}=${VAR:${MOD_TERM}}"
+
+modloop:
+	@echo "Expect: errors about missing @ delimiter"
+	@echo ${UNDEF:U1 2 3:@var}
+	@echo ${UNDEF:U1 2 3:@var@...}
+	@echo ${UNDEF:U1 2 3:@var@${var}@}

Reply via email to