make(1): fix wrong comments in test for the .for loop

These comments were my original assumptions, which I wrote before
running the test and before looking at the implementation.
This commit is contained in:
rillig 2020-09-02 22:58:59 +00:00
parent 63ba4b950e
commit cd07afa0d7
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: directive-for.mk,v 1.1 2020/09/02 05:33:57 rillig Exp $ # $NetBSD: directive-for.mk,v 1.2 2020/09/02 22:58:59 rillig Exp $
# #
# Tests for the .for directive. # Tests for the .for directive.
@ -51,10 +51,10 @@ var2= value before
.for var var2 in 1 2 3 4 .for var var2 in 1 2 3 4
.endfor .endfor
.if ${var} != "value before" .if ${var} != "value before"
. warning var must be undefined. . warning After the .for loop, var must still have its original value.
.endif .endif
.if ${var2} != "value before" .if ${var2} != "value before"
. warning var2 must be undefined. . warning After the .for loop, var2 must still have its original value.
.endif .endif
# Everything from the paragraph above also applies if the loop body is # Everything from the paragraph above also applies if the loop body is
@ -66,10 +66,10 @@ var2= value before
.for var var2 in ${:U} .for var var2 in ${:U}
.endfor .endfor
.if ${var} != "value before" .if ${var} != "value before"
. warning var must be undefined. . warning After the .for loop, var must still have its original value.
.endif .endif
.if ${var2} != "value before" .if ${var2} != "value before"
. warning var2 must be undefined. . warning After the .for loop, var2 must still have its original value.
.endif .endif
# Until 2008-12-21, the values of the iteration variables were simply # Until 2008-12-21, the values of the iteration variables were simply