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/a73ff3772320
branches: trunk
changeset: 950379:a73ff3772320
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 0bcaad4730c8 -r a73ff3772320 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 0bcaad4730c8 -r a73ff3772320 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