There was an error while loading. Please reload this page.
1 parent 6e89028 commit 371c251Copy full SHA for 371c251
1 file changed
src/test/recovery/t/014_unlogged_reinit.pl
@@ -44,8 +44,25 @@
44
45
my $tablespaceDir = PostgreSQL::Test::Utils::tempdir;
46
47
+sub real_dir
48
+{
49
+ my $dir = "$_[0]";
50
+ return $dir unless -d $dir;
51
+ use Config;
52
+ return $dir unless $Config{osname} eq 'msys';
53
+ use Cwd;
54
+ my $here = cwd;
55
+ chdir $dir;
56
+ $dir = qx{sh -c "pwd -W"};
57
+ chomp $dir;
58
+ chdir $here;
59
+ return $dir;
60
+}
61
+
62
+my $realTSDir = real_dir($tablespaceDir);
63
64
$node->safe_psql('postgres',
- "CREATE TABLESPACE ts1 LOCATION '$tablespaceDir'");
65
+ "CREATE TABLESPACE ts1 LOCATION '$realTSDir'");
66
67
'CREATE UNLOGGED TABLE ts1_unlogged (id int) TABLESPACE ts1');
68
0 commit comments