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 1nXjGs-00015K-Ql for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Mar 2022 12:42:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nXjGr-0001SO-Ky for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Mar 2022 12:42:25 +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 1nXjGq-0001SE-RX for pgsql-hackers@lists.postgresql.org; Fri, 25 Mar 2022 12:42:25 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXjGn-0000WR-V6 for pgsql-hackers@lists.postgresql.org; Fri, 25 Mar 2022 12:42:23 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F31B95C00FE; Fri, 25 Mar 2022 08:42:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 25 Mar 2022 08:42:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=ZDCj99x3uOrm0f4e9ekLlKvpZ2E24p5NnBU0/e ++cxg=; b=C2qnJpbBaqGt/EwwZw8v9PWz0aIt9fAhzolSXH4BSUojZZjkkmr0xL BXZ/QZyRIu610tIKjd4DeyC1KH885epa+puxe29ZCOP/bWhUf6AilQVJAShOw5fU uuIgt/rrbpW8Cyi/j8BHQWyyj/1kOG5kGoIy/NGZB6mgcBR3FvMgSBmOaB59dshe /PfyZe72c6fFm0UBPSQpfJ53mF9hPoUmoxPSNCvhJu3QqCNYONvGTueAwzWMq2RK odA+Kqyxfz2XVHMCWvk9Q2hwGQ1RYIa+YOOXKK6P5zuOsF72H1OGmgL8eVghzVY7 9XtlCoz5C+WIJ1UlC8kx8GMSY8lE3Y6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ZDCj99x3uOrm0f4e9 ekLlKvpZ2E24p5NnBU0/e++cxg=; b=eSgRW45qsRvwtwy3warwIcVOzf9fOsy4p 5NK6GLY97Wy4aMgGgQ4QkY1sczwcYI2e9UCLAtKmXleVBFge3HaTYfRs5J3qzUn2 T1pZgX9O2wpVCTPvHrG02ds4bTr4AXUS8a1/BPYKG9icSmSYg+SV7OcfqsoFXyK2 REvv3LMKL0PDWF7/0DM6WQeSQZAtwsAiHgCh/4M27yFDBKcuChDEkDLpY5zN0FA/ IYZG0VTYCmtJEaT6LBFu3dxMzabIDi+B9FeBXrdhe/ZmeB6OGXbpnsMAl/dT2a7J 8LTdKcC29J3D63rTx7TQXCcuSGbse3qmUKR5WDDcMFJWmDE+vNO5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehuddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehmtderredtreejnecuhfhrohhmpeffrghgfhhi nhhnpgfklhhmrghrihgpofgrnhhnshonkhgvrhcuoehilhhmrghrihesihhlmhgrrhhird horhhgqeenucggtffrrghtthgvrhhnpeetveeiheetteelgeelgffhfeekjeehleeltdet tdfgvdekffehffdvkeehueduffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Mar 2022 08:42:19 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Daniel Gustafsson Cc: Andrew Dunstan , PostgreSQL Hackers Subject: Re: Small TAP tests cleanup for Windows and unused modules References: <2e523a9e-d82f-0bb0-f4c1-bd5525e0c7a7@dunslane.net> <1C5E6782-5A0B-4F6D-9F2B-5AF177BDB333@yesql.se> Date: Fri, 25 Mar 2022 12:42:18 +0000 In-Reply-To: <1C5E6782-5A0B-4F6D-9F2B-5AF177BDB333@yesql.se> (Daniel Gustafsson's message of "Thu, 24 Mar 2022 21:02:09 +0100") Message-ID: <87lewyqk45.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Daniel Gustafsson writes: >> On 18 Feb 2022, at 22:02, Daniel Gustafsson wrote: > >> .. let's drop the 0001 from this thread and just go ahead with 0002. > > I applied the 0002 patch today, cleaning up the unused module imports. A quick git grep¹ revealed a few more extraneous `use Config;` statements (and manual inspection a few more unused modules in one file). Here's a patch that removes those. It passes tests using ./configure --enable-tap-tests --with-ldap make check-world PG_TEST_EXTRA=ldap - ilmari [1] git grep -L '[%@$]Config\b' $(git grep -l 'use Config') --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Remove-more-unused-module-imports-in-test.patch From 681897c17c125a0ef380aa3ef0cba786dba24d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Fri, 25 Mar 2022 12:36:34 +0000 Subject: [PATCH] Remove more unused module imports in test Commit 7dac61402e34c6d41d5d11cdc4c6a55f91e24026 removed a bunch of superflous `use Config;` and `use Cwd;` statements, but some were left behind. --- src/bin/pg_ctl/t/001_start_stop.pl | 3 --- src/bin/pg_rewind/t/RewindTest.pm | 1 - src/test/ldap/t/001_auth.pl | 1 - 3 files changed, 5 deletions(-) diff --git a/src/bin/pg_ctl/t/001_start_stop.pl b/src/bin/pg_ctl/t/001_start_stop.pl index 3b45390ced..fdffd76d99 100644 --- a/src/bin/pg_ctl/t/001_start_stop.pl +++ b/src/bin/pg_ctl/t/001_start_stop.pl @@ -4,9 +4,6 @@ use strict; use warnings; -use Config; -use Fcntl ':mode'; -use File::stat qw{lstat}; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; diff --git a/src/bin/pg_rewind/t/RewindTest.pm b/src/bin/pg_rewind/t/RewindTest.pm index 5651602858..1e34768e27 100644 --- a/src/bin/pg_rewind/t/RewindTest.pm +++ b/src/bin/pg_rewind/t/RewindTest.pm @@ -35,7 +35,6 @@ package RewindTest; use warnings; use Carp; -use Config; use Exporter 'import'; use File::Copy; use File::Path qw(rmtree); diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl index 9f15248935..b342146e55 100644 --- a/src/test/ldap/t/001_auth.pl +++ b/src/test/ldap/t/001_auth.pl @@ -6,7 +6,6 @@ use PostgreSQL::Test::Utils; use PostgreSQL::Test::Cluster; use Test::More; -use Config; my ($slapd, $ldap_bin_dir, $ldap_schema_dir); -- 2.30.2 --=-=-=--