aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/directive-error.mk
blob: f35a9da3a018d1358edfffb786f0fa9e2ab72c11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $NetBSD: directive-error.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $
#
# Tests for the .error directive, which prints an error message and exits
# immediately, unlike other "fatal" parse errors, which continue to parse
# until the end of the current top-level makefile.
#
# See also:
#	opt-warnings-as-errors.mk

# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant
# message saying "parsing warnings being treated as errors".
.MAKEFLAGS: -W
# expect+1: message
.error message