aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/varparse-dynamic.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/varparse-dynamic.mk')
-rw-r--r--contrib/bmake/unit-tests/varparse-dynamic.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/bmake/unit-tests/varparse-dynamic.mk b/contrib/bmake/unit-tests/varparse-dynamic.mk
index d4d165017a7f..40f43b049b13 100644
--- a/contrib/bmake/unit-tests/varparse-dynamic.mk
+++ b/contrib/bmake/unit-tests/varparse-dynamic.mk
@@ -1,12 +1,14 @@
-# $NetBSD: varparse-dynamic.mk,v 1.5 2021/02/22 20:38:55 rillig Exp $
+# $NetBSD: varparse-dynamic.mk,v 1.8 2023/11/19 22:32:44 rillig Exp $
# Before 2020-07-27, there was an off-by-one error in Var_Parse that skipped
# the last character in the variable name.
-# To trigger the bug, the variable must not be defined.
+# To trigger the bug, the variable had to be undefined.
.if ${.TARGET} # exact match, may be undefined
.endif
+# expect+1: Malformed conditional (${.TARGEX})
.if ${.TARGEX} # 1 character difference, must be defined
.endif
+# expect+1: Malformed conditional (${.TARGXX})
.if ${.TARGXX} # 2 characters difference, must be defined
.endif
@@ -22,7 +24,7 @@
.endif
# If a dynamic variable is expanded in a non-local scope, the expression
-# based on this variable is not expanded. But there may be nested variable
+# based on this variable is not expanded. But there may be nested
# expressions in the modifiers, and these are kept unexpanded as well.
.if ${.TARGET:M${:Ufallback}} != "\${.TARGET:M\${:Ufallback}}"
. error
@@ -30,6 +32,3 @@
.if ${.TARGET:M${UNDEF}} != "\${.TARGET:M\${UNDEF}}"
. error
.endif
-
-all:
- @: