Received: by mail.netbsd.org (Postfix, from userid 605) id 49F0584D46; Sun, 14 Mar 2021 01:34:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 73C3F84D15 for ; Sun, 14 Mar 2021 01:34:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id nOROui0sEUAC for ; Sun, 14 Mar 2021 01:34:14 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 00C8984CE0 for ; Sun, 14 Mar 2021 01:34:13 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E17F0FA95; Sun, 14 Mar 2021 01:34:13 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 14 Mar 2021 01:34:13 +0000 From: "Roland Illig" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210314013413.E17F0FA95@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sun Mar 14 01:34:13 UTC 2021 Modified Files: src/tests/usr.bin/indent: comments.0 comments.0.stdout opt-P.0.stdout opt-bap+sob.0.stdout token-comment.0.stdout token-keyword_do_else.0.stdout src/usr.bin/indent: pr_comment.c Log Message: indent: fix off-by-one error in comment wrapping The manual page says that the default maximum length of a comment line is 78. The test 'comments.0' wrongly assumed that this 78 would refer to the maximum _column_ allowed, which is off by one. Fix the wording in the test 'comments.0' and remove the (now satisfied) expectation comments in the test 'token-comment.0'. Several other tests just happened to hit that limit, fix these as well. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/indent/comments.0 \ src/tests/usr.bin/indent/comments.0.stdout \ src/tests/usr.bin/indent/opt-bap+sob.0.stdout \ src/tests/usr.bin/indent/token-keyword_do_else.0.stdout cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/indent/opt-P.0.stdout \ src/tests/usr.bin/indent/token-comment.0.stdout cvs rdiff -u -r1.31 -r1.32 src/usr.bin/indent/pr_comment.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.