Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): demonstrate irrelevant mess...
details: https://anonhg.NetBSD.org/src/rev/1c4b37ab2c11
branches: trunk
changeset: 980197:1c4b37ab2c11
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Jan 26 23:51:20 2021 +0000
description:
make(1): demonstrate irrelevant message about warnings as errors
diffstat:
usr.bin/make/unit-tests/directive-error.exp | 6 +++++-
usr.bin/make/unit-tests/directive-error.mk | 7 ++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 7268773a2285 -r 1c4b37ab2c11 usr.bin/make/unit-tests/directive-error.exp
--- a/usr.bin/make/unit-tests/directive-error.exp Tue Jan 26 23:44:56 2021 +0000
+++ b/usr.bin/make/unit-tests/directive-error.exp Tue Jan 26 23:51:20 2021 +0000
@@ -1,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
diff -r 7268773a2285 -r 1c4b37ab2c11 usr.bin/make/unit-tests/directive-error.mk
--- a/usr.bin/make/unit-tests/directive-error.mk Tue Jan 26 23:44:56 2021 +0000
+++ b/usr.bin/make/unit-tests/directive-error.mk Tue Jan 26 23:51:20 2021 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index