summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/directive-warning.mk
blob: b4c8f4730b78af72893c4f38a5d995d815d70c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $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