aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-12-01 07:53:18 +0900
committerMichael Paquier <michael@paquier.xyz>2018-12-01 07:53:18 +0900
commit7d4524aed3a4720086b2914ec22f1bbbc857ac44 (patch)
treef0bcda14ce82cb3a058bad75b4f175427fa0cbb7 /src
parent9dc122585551516309c9362e673effdbf3bd79bd (diff)
downloadpostgresql-7d4524aed3a4720086b2914ec22f1bbbc857ac44.tar.gz
postgresql-7d4524aed3a4720086b2914ec22f1bbbc857ac44.zip
Fix tablespace path TAP test of pg_verify_checksums for msys
TAP tests on msys need to run with the DTK perl, which understands msys virtualized paths. Postgres, however, does not understand such paths, so before a path can be used safely with CREATE TABLESPACE, it needs to be translated into a path on the underlying file system. Per report from buildfarm member jacana. Suggested fix is from Andrew Dunstan. Discussion: https://postgr.es/m/20181130053555.GF2267@paquier.xyz
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_verify_checksums/t/002_actions.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_verify_checksums/t/002_actions.pl b/src/bin/pg_verify_checksums/t/002_actions.pl
index 12cca604e61..5250b5a7286 100644
--- a/src/bin/pg_verify_checksums/t/002_actions.pl
+++ b/src/bin/pg_verify_checksums/t/002_actions.pl
@@ -116,6 +116,7 @@ check_relation_corruption($node, 'corrupt1', 'pg_default');
my $basedir = $node->basedir;
my $tablespace_dir = "$basedir/ts_corrupt_dir";
mkdir ($tablespace_dir);
+$tablespace_dir = TestLib::real_dir($tablespace_dir);
$node->safe_psql('postgres',
"CREATE TABLESPACE ts_corrupt LOCATION '$tablespace_dir';");
check_relation_corruption($node, 'corrupt2', 'ts_corrupt');