opnsense-src/contrib/bmake/unit-tests/directive-warning.mk
Simon J. Gerraty 148ee84570 Merge bmake-20230622
Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'
2023-06-27 13:57:58 -07:00

25 lines
878 B
Makefile

# $NetBSD: directive-warning.mk,v 1.8 2023/06/01 20:56:35 rillig Exp $
#
# Tests for the .warning directive.
#
# Until parse.c 1.502 from 2020-12-19, a missing argument to the directive
# produced the wrong error message "Unknown directive". Since parse.c 1.503
# from 2020-12-19, the correct "Missing argument" is produced.
# expect+1: Unknown directive "warn"
.warn # misspelled
# expect+1: Unknown directive "warn"
.warn message # misspelled
# expect+1: Unknown directive "warnin"
.warnin # misspelled
# expect+1: Unknown directive "warnin"
.warnin message # misspelled
# expect+1: Missing argument for ".warning"
.warning # "Missing argument"
.warning message # expect+0: message
# expect+1: Unknown directive "warnings"
.warnings # misspelled
# expect+1: Unknown directive "warnings"
.warnings messages # Accepted before 2020-12-13 01:07:54.
all: .PHONY