NetBSD/usr.bin/make/unit-tests/directive-warning.mk

26 lines
887 B
Makefile

# $NetBSD: directive-warning.mk,v 1.9 2023/12/17 09:44:00 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: warning: 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