Skip to content

Commit 9daefff

Browse files
committed
MSYS: Translate REGRESS_SHLIB to a Windows file name.
Per buildfarm member jacana. Back-patch to v11; earlier branches skip the affected test under msys. Discussion: https://postgr.es/m/GrdLgAdUK9FdyZg8VIcTDKVOkys122ZINEb3CjjoySfGj2KyPiMKTh1zqtRp0TAD7FJ27G-OBB3eplxIB5GhcQH5o8zzGZfp0MuJaXJxVxk=@yesql.se
1 parent 947a350 commit 9daefff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/test/recovery/t/017_shm.pl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44
use strict;
55
use warnings;
6+
use Config;
67
use IPC::Run 'run';
78
use PostgresNode;
89
use Test::More;
@@ -11,6 +12,14 @@
1112

1213
plan tests => 5;
1314

15+
# See PostgresNode
16+
my $vfs_path = '';
17+
if ($Config{osname} eq 'msys')
18+
{
19+
$vfs_path = `cd / && pwd -W`;
20+
chomp $vfs_path;
21+
}
22+
1423
my $tempdir = TestLib::tempdir;
1524
my $port;
1625

@@ -97,7 +106,7 @@ sub init_start
97106
$gnat->safe_psql('postgres', <<EOSQL);
98107
CREATE FUNCTION wait_pid(int)
99108
RETURNS void
100-
AS '$ENV{REGRESS_SHLIB}'
109+
AS '$vfs_path$ENV{REGRESS_SHLIB}'
101110
LANGUAGE C STRICT;
102111
EOSQL
103112
my $slow_query = 'SELECT wait_pid(pg_backend_pid())';

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy