Module Name:    src
Committed By:   rillig
Date:           Sat Jul 10 09:14:38 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: Makefile

Log Message:
tests/lint: when adding a new test, set an invalid option

This forces the test author to think about whether any custom options
are really needed.  While here, mention the other possible
customizations as well.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/usr.bin/xlint/lint1/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/Makefile
diff -u src/usr.bin/xlint/lint1/Makefile:1.78 src/usr.bin/xlint/lint1/Makefile:1.79
--- src/usr.bin/xlint/lint1/Makefile:1.78	Mon Jul  5 10:34:26 2021
+++ src/usr.bin/xlint/lint1/Makefile	Sat Jul 10 09:14:38 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.78 2021/07/05 10:34:26 hgutch Exp $
+#	$NetBSD: Makefile,v 1.79 2021/07/10 09:14:38 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -74,7 +74,10 @@ add-test: .PHONY
 		' * TODO: Explain the purpose of the test.' \
 		' */' \
 		'' \
-		'/* lint1-extra-flags: -p */' \
+		'/* lint1-extra-flags: -Z */' \
+		'/* lint1-flags: -Z */' \
+		'/* lint1-only-if: schar uchar ilp32 lp64 int long */' \
+		'/* lint1-skip-if: ldbl-64 ldbl-96 ldbl-128 */' \
 		'' \
 		'// TODO: Add some code that passes.' \
 		'// TODO: Add some code that fails.' \

Reply via email to