Module Name:    src
Committed By:   rillig
Date:           Thu Sep  3 19:10:56 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: dep-var.exp dep-var.mk

Log Message:
make: extend test for unresolved variables in dependencies

This is to ensure that the upcoming refactoring of Var_Parse in
SuffExpandChildren does not break anything.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/dep-var.exp \
    src/usr.bin/make/unit-tests/dep-var.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/dep-var.exp
diff -u src/usr.bin/make/unit-tests/dep-var.exp:1.1 src/usr.bin/make/unit-tests/dep-var.exp:1.2
--- src/usr.bin/make/unit-tests/dep-var.exp:1.1	Sat Aug 22 16:51:26 2020
+++ src/usr.bin/make/unit-tests/dep-var.exp	Thu Sep  3 19:10:56 2020
@@ -1,2 +1,3 @@
 def2
+a-def2-b
 exit status 0
Index: src/usr.bin/make/unit-tests/dep-var.mk
diff -u src/usr.bin/make/unit-tests/dep-var.mk:1.1 src/usr.bin/make/unit-tests/dep-var.mk:1.2
--- src/usr.bin/make/unit-tests/dep-var.mk:1.1	Sat Aug 22 16:51:26 2020
+++ src/usr.bin/make/unit-tests/dep-var.mk	Thu Sep  3 19:10:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: dep-var.mk,v 1.1 2020/08/22 16:51:26 rillig Exp $
+# $NetBSD: dep-var.mk,v 1.2 2020/09/03 19:10:56 rillig Exp $
 #
 # Tests for variable references in dependency declarations.
 #
@@ -17,7 +17,7 @@ all: ${UNDEF1}
 #
 # At the point where the expression ${DEF2} is expanded, the variable DEF2
 # is defined, so everything's fine.
-all: $${DEF2}
+all: $${DEF2} a-$${DEF2}-b
 
 # This variable is not defined at all.
 # XXX: The -dv log says:
@@ -29,5 +29,5 @@ all: $${UNDEF3}
 UNDEF1=	undef1
 DEF2=	def2
 
-undef1 def2:
+undef1 def2 a-def2-b:
 	@echo ${.TARGET}

Reply via email to