Skip to content

Commit c462b05

Browse files
Fix the test 005_char_signedness.
pg_upgrade test 005_char_signedness was leaving files like delete_old_cluster.sh in the source directory for VPATH and meson builds. The fix is to change the directory to tmp_check before running the test. Reported-by: Robert Haas <robertmhaas@gmail.com> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: http://postgr.es/m/CA+TgmoYg5e4oznn0XGoJ3+mceG1qe_JJt34rF2JLwvGS5T1hgQ@mail.gmail.com
1 parent 17caf66 commit c462b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/pg_upgrade/t/005_char_signedness.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
qr/Default char data signedness:\s+unsigned/,
4646
'updated default char signedness is unsigned in control file');
4747

48+
# In a VPATH build, we'll be started in the source directory, but we want
49+
# to run pg_upgrade in the build directory so that any files generated finish
50+
# in it, like delete_old_cluster.{sh,bat}.
51+
chdir ${PostgreSQL::Test::Utils::tmp_check};
52+
4853
# Cannot use --set-char-signedness option for upgrading from v18+
4954
command_checks_all(
5055
[

0 commit comments

Comments
 (0)