Module Name:    src
Committed By:   rillig
Date:           Wed Sep  2 22:58:59 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: directive-for.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/directive-for.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/directive-for.mk
diff -u src/usr.bin/make/unit-tests/directive-for.mk:1.1 src/usr.bin/make/unit-tests/directive-for.mk:1.2
--- src/usr.bin/make/unit-tests/directive-for.mk:1.1	Wed Sep  2 05:33:57 2020
+++ src/usr.bin/make/unit-tests/directive-for.mk	Wed Sep  2 22:58:59 2020
@@ -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.
 
@@ -51,10 +51,10 @@ var2=	value before
 .for var var2 in 1 2 3 4
 .endfor
 .if ${var} != "value before"
-.  warning var must be undefined.
+.  warning After the .for loop, var must still have its original value.
 .endif
 .if ${var2} != "value before"
-.  warning var2 must be undefined.
+.  warning After the .for loop, var2 must still have its original value.
 .endif
 
 # Everything from the paragraph above also applies if the loop body is
@@ -66,10 +66,10 @@ var2=	value before
 .for var var2 in ${:U}
 .endfor
 .if ${var} != "value before"
-.  warning var must be undefined.
+.  warning After the .for loop, var must still have its original value.
 .endif
 .if ${var2} != "value before"
-.  warning var2 must be undefined.
+.  warning After the .for loop, var2 must still have its original value.
 .endif
 
 # Until 2008-12-21, the values of the iteration variables were simply

Reply via email to