Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/xlint tests/lint: suggest better quickfix for ...



details:   https://anonhg.NetBSD.org/src/rev/95103b640a39
branches:  trunk
changeset: 1023039:95103b640a39
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 21 07:49:48 2021 +0000

description:
tests/lint: suggest better quickfix for expected lint diagnostics

The /* expect */ comments are usually so detailed that they are placed
in a line of their own, referring to the following line.

diffstat:

 tests/usr.bin/xlint/check-expect.lua |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 22f9bb3f37ee -r 95103b640a39 tests/usr.bin/xlint/check-expect.lua
--- a/tests/usr.bin/xlint/check-expect.lua      Sat Aug 21 07:03:30 2021 +0000
+++ b/tests/usr.bin/xlint/check-expect.lua      Sat Aug 21 07:49:48 2021 +0000
@@ -1,5 +1,5 @@
 #!  /usr/bin/lua
--- $NetBSD: check-expect.lua,v 1.11 2021/08/19 20:32:33 rillig Exp $
+-- $NetBSD: check-expect.lua,v 1.12 2021/08/21 07:49:48 rillig Exp $
 
 --[[
 
@@ -116,7 +116,7 @@
     end
 
     if not found then
-      errors:add("error: %s: missing /* expect: %s */", act.location, act.message)
+      errors:add("error: %s: missing /* expect+1: %s */", act.location, act.message)
     end
   end
 



Home | Main Index | Thread Index | Old Index