Module Name:    src
Committed By:   rillig
Date:           Tue Jan 26 23:51:20 UTC 2021

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

Log Message:
make(1): demonstrate irrelevant message about warnings as errors


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/directive-error.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/directive-error.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-error.exp
diff -u src/usr.bin/make/unit-tests/directive-error.exp:1.1 src/usr.bin/make/unit-tests/directive-error.exp:1.2
--- src/usr.bin/make/unit-tests/directive-error.exp:1.1	Sun Aug 16 12:07:51 2020
+++ src/usr.bin/make/unit-tests/directive-error.exp	Tue Jan 26 23:51:20 2021
@@ -1 +1,5 @@
-exit status 0
+make: "directive-error.mk" line 11: message
+make: parsing warnings being treated as errors
+
+make: stopped in unit-tests
+exit status 1

Index: src/usr.bin/make/unit-tests/directive-error.mk
diff -u src/usr.bin/make/unit-tests/directive-error.mk:1.3 src/usr.bin/make/unit-tests/directive-error.mk:1.4
--- src/usr.bin/make/unit-tests/directive-error.mk:1.3	Sun Dec 13 01:07:54 2020
+++ src/usr.bin/make/unit-tests/directive-error.mk	Tue Jan 26 23:51:20 2021
@@ -1,4 +1,4 @@
-# $NetBSD: directive-error.mk,v 1.3 2020/12/13 01:07:54 rillig Exp $
+# $NetBSD: directive-error.mk,v 1.4 2021/01/26 23:51:20 rillig Exp $
 #
 # Tests for the .error directive, which prints an error message and exits
 # immediately, unlike other "fatal" parse errors, which continue to parse
@@ -6,5 +6,6 @@
 
 # TODO: Implementation
 
-all:
-	@:;
+# FIXME: The "parsing warnings being treated as errors" is irrelevant.
+.MAKEFLAGS: -W
+.error message

Reply via email to