Module Name:    src
Committed By:   rillig
Date:           Sun Sep 13 16:53:19 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: varname-dot-includes.mk
            varname-dot-libs.mk

Log Message:
make(1): fix tests for .INCLUDES and .LIBS

Found by an early draft of a refactoring of Var_Parse to properly report
errors.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/varname-dot-includes.mk \
    src/usr.bin/make/unit-tests/varname-dot-libs.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/varname-dot-includes.mk
diff -u src/usr.bin/make/unit-tests/varname-dot-includes.mk:1.1 src/usr.bin/make/unit-tests/varname-dot-includes.mk:1.2
--- src/usr.bin/make/unit-tests/varname-dot-includes.mk:1.1	Fri Aug 28 03:51:06 2020
+++ src/usr.bin/make/unit-tests/varname-dot-includes.mk	Sun Sep 13 16:53:19 2020
@@ -1,4 +1,4 @@
-# $NetBSD: varname-dot-includes.mk,v 1.1 2020/08/28 03:51:06 rillig Exp $
+# $NetBSD: varname-dot-includes.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
 #
 # Tests for the special .INCLUDES variable, which is not documented in the
 # manual page.
@@ -12,8 +12,8 @@
 .INCLUDES: .h
 
 # The .INCLUDES variable is not yet available.
-.if defined(${.INCLUDES:Q})
-.error
+.if defined(.INCLUDES)
+.  error
 .endif
 
 all:
Index: src/usr.bin/make/unit-tests/varname-dot-libs.mk
diff -u src/usr.bin/make/unit-tests/varname-dot-libs.mk:1.1 src/usr.bin/make/unit-tests/varname-dot-libs.mk:1.2
--- src/usr.bin/make/unit-tests/varname-dot-libs.mk:1.1	Fri Aug 28 03:51:06 2020
+++ src/usr.bin/make/unit-tests/varname-dot-libs.mk	Sun Sep 13 16:53:19 2020
@@ -1,4 +1,4 @@
-# $NetBSD: varname-dot-libs.mk,v 1.1 2020/08/28 03:51:06 rillig Exp $
+# $NetBSD: varname-dot-libs.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
 #
 # Tests for the special .LIBS variable, which is not documented in the
 # manual page.
@@ -12,8 +12,8 @@
 .LIBS: .a
 
 # The .LIBS variable is not yet available.
-.if defined(${.LIBS:Q})
-.error
+.if defined(.LIBS)
+.  error
 .endif
 
 all:

Reply via email to