]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Don't leave behind files in src dir in 007_multixact_conversion.pl
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 17 Mar 2026 09:24:10 +0000 (11:24 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 17 Mar 2026 09:24:52 +0000 (11:24 +0200)
pg_upgrade test 007_multixact_conversion.pl was leaving files like
delete_old_cluster.sh in the source directory for VPATH and meson
builds. To fix, change the tmp_check directory before running the
test, like in the other pg_upgrade tests.

Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
https://www.postgresql.org/message-id/TYRPR01MB121563A4DA8B2FE9A2ECB79F5F541A@TYRPR01MB12156.jpnprd01.prod.outlook.com

src/bin/pg_upgrade/t/007_multixact_conversion.pl

index d18c50830d5c09ff3cbaa1ac0a90da08e22c7fd2..867a062315316ed09496bf4c4817f3c85f5256d9 100644 (file)
@@ -357,6 +357,11 @@ sub upgrade_and_compare
                'multixact members from original and upgraded clusters match');
 }
 
+# In a VPATH build, we'll be started in the source directory, but we want
+# to run pg_upgrade in the build directory so that any files generated finish
+# in it, like delete_old_cluster.{sh,bat}.
+chdir ${PostgreSQL::Test::Utils::tmp_check};
+
 my $old_version;
 
 # Basic scenario: Create a cluster using old installation, run