Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 3EFE51A923A for ; Mon, 31 Aug 2020 17:32:15 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id A8C3684D79; Mon, 31 Aug 2020 17:32:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2BCA484D62 for ; Mon, 31 Aug 2020 17:32: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 BpUUsrDjM_Dx for ; Mon, 31 Aug 2020 17:32:13 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id B76BA84CDB for ; Mon, 31 Aug 2020 17:32:13 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id AF13CFB27; Mon, 31 Aug 2020 17:32:13 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 31 Aug 2020 17:32:13 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make/unit-tests To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200831173213.AF13CFB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org 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: Mon Aug 31 17:32:13 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: varmod-unique.exp varmod-unique.mk Log Message: make(1): add test for the currently broken :u variable modifier The :u modifier had been broken in var.c 1.479 from 2020.08.30.19.56.02. The code that implements the :u modifier was well-covered in the unit tests, except for the single line that actually deals with adjacent duplicate words. The "refactoring" commit that replaced brk_string with Str_Words had not taken into account that the number of words (in ac) had to be passed to WordList_JoinFree. Instead, the number of words was always preserved, and the words at the end were therefore duplicated in the result. The fix for this bug will be in the follow-up commit. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/varmod-unique.exp cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/varmod-unique.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.