Home | History | Annotate | Line # | Download | only in unit-tests
      1 # $NetBSD: directive-error.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $
      2 #
      3 # Tests for the .error directive, which prints an error message and exits
      4 # immediately, unlike other "fatal" parse errors, which continue to parse
      5 # until the end of the current top-level makefile.
      6 #
      7 # See also:
      8 #	opt-warnings-as-errors.mk
      9 
     10 # Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant
     11 # message saying "parsing warnings being treated as errors".
     12 .MAKEFLAGS: -W
     13 # expect+1: message
     14 .error message
     15