Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwbKx-0001eW-GQ for pgsql-committers@arkaria.postgresql.org; Fri, 25 Jun 2021 02:12:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwbKv-0001nB-MW for pgsql-committers@arkaria.postgresql.org; Fri, 25 Jun 2021 02:12:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwbKv-0001n2-Gu for pgsql-committers@lists.postgresql.org; Fri, 25 Jun 2021 02:12:53 +0000 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwbKs-0007KY-QA for pgsql-committers@lists.postgresql.org; Fri, 25 Jun 2021 02:12:52 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 2F824C0002; Fri, 25 Jun 2021 02:12:46 +0000 (UTC) Subject: Re: pgsql: Fix pattern matching logic for logs in TAP tests of pgbench To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org References: From: Andrew Dunstan Message-ID: <0f49303e-7784-b3ee-200b-cbf67be2eb9e@dunslane.net> Date: Thu, 24 Jun 2021 22:12:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/24/21 9:53 PM, Michael Paquier wrote: > On Thu, Jun 24, 2021 at 09:36:53PM -0400, Andrew Dunstan wrote: >> That's not really an equivalent test. I'm taking a look > Thanks! There's a whole lot wrong with this code. To start with, why is that unchecked eval there. And why is it reading in log files on its own instead of using TestLib::slurp_file, which, among other things, normalizes line endings? There's a very good chance that this latter is the issue. It only affects msys which is why you didn't see an issue on MSVC. And also, why does it carefully unlink the log files so that any trace of what's gone wrong is deleted? Based on the little I've seen this file needs a serious code review. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com