Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): add test about missing deli...
details: https://anonhg.NetBSD.org/src/rev/47e16e6c6831
branches: trunk
changeset: 1012232:47e16e6c6831
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jul 26 10:04:06 2020 +0000
description:
make(1): add test about missing delimiters in :@ modifier
These error conditions have been broken since var.c 1.236 on 2020-07-03.
diffstat:
usr.bin/make/unit-tests/moderrs.exp | 4 ++++
usr.bin/make/unit-tests/moderrs.mk | 10 ++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r db209cb177a1 -r 47e16e6c6831 usr.bin/make/unit-tests/moderrs.exp
--- a/usr.bin/make/unit-tests/moderrs.exp Sun Jul 26 09:22:43 2020 +0000
+++ b/usr.bin/make/unit-tests/moderrs.exp Sun Jul 26 10:04:06 2020 +0000
@@ -13,4 +13,8 @@
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
diff -r db209cb177a1 -r 47e16e6c6831 usr.bin/make/unit-tests/moderrs.mk
--- a/usr.bin/make/unit-tests/moderrs.mk Sun Jul 26 09:22:43 2020 +0000
+++ b/usr.bin/make/unit-tests/moderrs.mk Sun Jul 26 10:04:06 2020 +0000
@@ -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_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 @@
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}@}
Home |
Main Index |
Thread Index |
Old Index