Commit 9daefff1 authored by Noah Misch's avatar Noah Misch

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
parent 947a3501
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# #
use strict; use strict;
use warnings; use warnings;
use Config;
use IPC::Run 'run'; use IPC::Run 'run';
use PostgresNode; use PostgresNode;
use Test::More; use Test::More;
...@@ -11,6 +12,14 @@ use Time::HiRes qw(usleep); ...@@ -11,6 +12,14 @@ use Time::HiRes qw(usleep);
plan tests => 5; plan tests => 5;
# See PostgresNode
my $vfs_path = '';
if ($Config{osname} eq 'msys')
{
$vfs_path = `cd / && pwd -W`;
chomp $vfs_path;
}
my $tempdir = TestLib::tempdir; my $tempdir = TestLib::tempdir;
my $port; my $port;
...@@ -97,7 +106,7 @@ log_ipcs(); ...@@ -97,7 +106,7 @@ log_ipcs();
$gnat->safe_psql('postgres', <<EOSQL); $gnat->safe_psql('postgres', <<EOSQL);
CREATE FUNCTION wait_pid(int) CREATE FUNCTION wait_pid(int)
RETURNS void RETURNS void
AS '$ENV{REGRESS_SHLIB}' AS '$vfs_path$ENV{REGRESS_SHLIB}'
LANGUAGE C STRICT; LANGUAGE C STRICT;
EOSQL EOSQL
my $slow_query = 'SELECT wait_pid(pg_backend_pid())'; my $slow_query = 'SELECT wait_pid(pg_backend_pid())';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment