Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 tests/lint: when adding a new test, set ...



details:   https://anonhg.NetBSD.org/src/rev/9ce834346580
branches:  trunk
changeset: 984491:9ce834346580
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jul 10 09:14:38 2021 +0000

description:
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.

diffstat:

 usr.bin/xlint/lint1/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 179ac6334359 -r 9ce834346580 usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile      Sat Jul 10 08:40:36 2021 +0000
+++ b/usr.bin/xlint/lint1/Makefile      Sat Jul 10 09:14:38 2021 +0000
@@ -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 @@
                ' * 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.' \



Home | Main Index | Thread Index | Old Index