summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/cond-func-defined.mk
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-06-01 20:56:35 +0000
committerrillig <rillig@NetBSD.org>2023-06-01 20:56:35 +0000
commitc87a0f0af9217c77a95dfd55b2073f34ae35576d (patch)
treebde8967dda0ad0f0f8a7782e2544990b10bfc68b /usr.bin/make/unit-tests/cond-func-defined.mk
parent804ec5ad1c5f82250c9279dcd7fb372399035a51 (diff)
tests/make: force line-based diagnostics to be listed in the tests
This way, contradictions between the intended output and the actual output are closer together and have a better chance of being spotted.
Diffstat (limited to 'usr.bin/make/unit-tests/cond-func-defined.mk')
-rw-r--r--usr.bin/make/unit-tests/cond-func-defined.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/make/unit-tests/cond-func-defined.mk b/usr.bin/make/unit-tests/cond-func-defined.mk
index f13e2a9a1f7..10adfde292e 100644
--- a/usr.bin/make/unit-tests/cond-func-defined.mk
+++ b/usr.bin/make/unit-tests/cond-func-defined.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cond-func-defined.mk,v 1.9 2022/05/08 06:51:27 rillig Exp $
+# $NetBSD: cond-func-defined.mk,v 1.10 2023/06/01 20:56:35 rillig Exp $
#
# Tests for the defined() function in .if conditions.
@@ -20,6 +20,7 @@ ${:UA B}= variable name with spaces
.endif
# The argument of a function must not directly contain whitespace.
+# expect+1: Missing closing parenthesis for defined()
.if !defined(A B)
. error
.endif
@@ -29,7 +30,7 @@ ${:UA B}= variable name with spaces
. error
.endif
-# Parse error: missing closing parenthesis; see ParseWord.
+# expect+1: Missing closing parenthesis for defined()
.if defined(DEF
. error
.else
@@ -42,8 +43,11 @@ ${:UA B}= variable name with spaces
. if defined(var)
. error
. else
+# expect+1: In .for loops, variable expressions for the loop variables are
. info In .for loops, variable expressions for the loop variables are
+# expect+1: substituted at evaluation time. There is no actual variable
. info substituted at evaluation time. There is no actual variable
+# expect+1: involved, even if it feels like it.
. info involved, even if it feels like it.
. endif
.endfor