aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/var-op-assign.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2020-11-07 19:39:21 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2020-11-07 19:39:21 +0000
commit302da1a3d35c15cb29d76e0a939f8bcb13f7ad80 (patch)
treec2146dca82d530521c4d2cc46a95c26964311a2c /unit-tests/var-op-assign.mk
parent6bbc783f48498b808e19db4441299dc7d85a278b (diff)
Import bmake-20201101vendor/NetBSD/bmake/20201101
Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py
Notes
Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=367460 svn path=/vendor/NetBSD/bmake/20201101/; revision=367461; tag=vendor/NetBSD/bmake/20201101
Diffstat (limited to 'unit-tests/var-op-assign.mk')
-rw-r--r--unit-tests/var-op-assign.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/unit-tests/var-op-assign.mk b/unit-tests/var-op-assign.mk
index dadff6ed4b87..c988d4141b83 100644
--- a/unit-tests/var-op-assign.mk
+++ b/unit-tests/var-op-assign.mk
@@ -1,4 +1,4 @@
-# $NetBSD: var-op-assign.mk,v 1.4 2020/08/25 16:20:32 rillig Exp $
+# $NetBSD: var-op-assign.mk,v 1.6 2020/10/24 08:50:17 rillig Exp $
#
# Tests for the = variable assignment operator, which overwrites an existing
# variable or creates it.
@@ -13,7 +13,7 @@ VAR= value
# is discarded. Otherwise the value would start with a single tab.
#
.if ${VAR} != "value"
-.error
+. error
.endif
# Whitespace to the left of the assignment operator is ignored as well.
@@ -26,12 +26,12 @@ VAR= value
# The '$' needs to be escaped with another '$', otherwise it would refer to
# another variable.
#
-VAR =new value and \# some $$ special characters # comment
+VAR= new value and \# some $$ special characters # comment
# When a string literal appears in a condition, the escaping rules are
# different. Run make with the -dc option to see the details.
.if ${VAR} != "new value and \# some \$ special characters"
-.error ${VAR}
+. error ${VAR}
.endif
# The variable value may contain references to other variables.
@@ -71,11 +71,11 @@ VARNAME_PAREN= VAR(spaces in parentheses)
VARNAME_BRACES= VAR{spaces in braces}
.if ${${VARNAME_PAREN}} != "()"
-.error
+. error
.endif
.if ${${VARNAME_BRACES}} != "{}"
-.error
+. error
.endif
# In safe mode, parsing would stop immediately after the "VARIABLE NAME="