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 tests/make: fix typo in variable name
details: https://anonhg.NetBSD.org/src/rev/f044d4e513c6
branches: trunk
changeset: 365997:f044d4e513c6
user: rillig <rillig%NetBSD.org@localhost>
date: Sun May 08 06:57:00 2022 +0000
description:
tests/make: fix typo in variable name
diffstat:
usr.bin/make/unit-tests/cond-token-string.exp | 3 +--
usr.bin/make/unit-tests/cond-token-string.mk | 8 +++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r b9f125896748 -r f044d4e513c6 usr.bin/make/unit-tests/cond-token-string.exp
--- a/usr.bin/make/unit-tests/cond-token-string.exp Sun May 08 06:51:27 2022 +0000
+++ b/usr.bin/make/unit-tests/cond-token-string.exp Sun May 08 06:57:00 2022 +0000
@@ -13,8 +13,7 @@
make: "cond-token-string.mk" line 68: A nonempty variable expression evaluates to true.
CondParser_Eval: "${:U}"
make: "cond-token-string.mk" line 76: An empty variable evaluates to false.
-CondParser_Eval: ("${VALUE}")
-make: "cond-token-string.mk" line 84: Missing argument for ".error"
+CondParser_Eval: ("${VAR}")
CondParser_Eval: "quoted" == quoted
Comparing "quoted" == "quoted"
make: Fatal errors encountered -- cannot continue
diff -r b9f125896748 -r f044d4e513c6 usr.bin/make/unit-tests/cond-token-string.mk
--- a/usr.bin/make/unit-tests/cond-token-string.mk Sun May 08 06:51:27 2022 +0000
+++ b/usr.bin/make/unit-tests/cond-token-string.mk Sun May 08 06:57:00 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cond-token-string.mk,v 1.5 2022/05/08 06:51:27 rillig Exp $
+# $NetBSD: cond-token-string.mk,v 1.6 2022/05/08 06:57:00 rillig Exp $
#
# Tests for quoted string literals in .if conditions.
#
@@ -77,9 +77,11 @@
.endif
# A non-empty string evaluates to true, no matter if it's a literal string or
-# if it contains variable expressions.
+# if it contains variable expressions. The parentheses are not necessary for
+# the parser, in this case their only purpose is to make the code harder to
+# read for humans.
VAR= value
-.if ("${VALUE}")
+.if ("${VAR}")
.else
. error
.endif
Home |
Main Index |
Thread Index |
Old Index