From 834c0a78409c738bc1c4b7d8437e813e3aedb9a1 Mon Sep 17 00:00:00 2001 From: he Date: Wed, 18 Oct 2006 00:05:33 +0000 Subject: [PATCH] Add handling of the supposed-to-fail tests. Add an "ok: " possibly followed by "(should warn & fail)" to the output to make it a little more obvious what is being run. --- regress/usr.bin/xlint/lint1/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/regress/usr.bin/xlint/lint1/Makefile b/regress/usr.bin/xlint/lint1/Makefile index 03bc1b2eea06..a29c96c01e53 100644 --- a/regress/usr.bin/xlint/lint1/Makefile +++ b/regress/usr.bin/xlint/lint1/Makefile @@ -1,11 +1,17 @@ -# $NetBSD: Makefile,v 1.2 2006/10/14 23:38:40 dogcow Exp $ +# $NetBSD: Makefile,v 1.3 2006/10/18 00:05:33 he Exp $ TESTS != echo test*.c +FAIL_TESTS != echo fail-test*.c LINT1 = ${DESTDIR}/usr/libexec/lint1 regress: . for i in ${TESTS} ${LINT1} -g -S $i /dev/null + echo ok: $i +. endfor +. for i in ${FAIL_TESTS} + ! ${LINT1} -g -S -w $i /dev/null + echo ok: $i '(should warn & fail)' . endfor .include