Tue Jan 26 23:51:20 2021 UTC ()
make(1): demonstrate irrelevant message about warnings as errors


(rillig)
diff -r1.1 -r1.2 src/usr.bin/make/unit-tests/directive-error.exp
diff -r1.3 -r1.4 src/usr.bin/make/unit-tests/directive-error.mk

cvs diff -r1.1 -r1.2 src/usr.bin/make/unit-tests/directive-error.exp (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/directive-error.exp 2020/08/16 12:07:51 1.1
+++ src/usr.bin/make/unit-tests/directive-error.exp 2021/01/26 23:51:20 1.2

cvs diff -r1.3 -r1.4 src/usr.bin/make/unit-tests/directive-error.mk (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/directive-error.mk 2020/12/13 01:07:54 1.3
+++ src/usr.bin/make/unit-tests/directive-error.mk 2021/01/26 23:51:20 1.4
@@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
1# $NetBSD: directive-error.mk,v 1.3 2020/12/13 01:07:54 rillig Exp $ 1# $NetBSD: directive-error.mk,v 1.4 2021/01/26 23:51:20 rillig Exp $
2# 2#
3# Tests for the .error directive, which prints an error message and exits 3# Tests for the .error directive, which prints an error message and exits
4# immediately, unlike other "fatal" parse errors, which continue to parse 4# immediately, unlike other "fatal" parse errors, which continue to parse
5# until the end of the current top-level makefile. 5# until the end of the current top-level makefile.
6 6
7# TODO: Implementation 7# TODO: Implementation
8 8
9all: 9# FIXME: The "parsing warnings being treated as errors" is irrelevant.
10 @:; 10.MAKEFLAGS: -W
 11.error message