v1-0001-Add-an-additional-check-in-raw_connect_works-for-.patch
text/x-diff
Filename: v1-0001-Add-an-additional-check-in-raw_connect_works-for-.patch
Type: text/x-diff
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v1-0001
Subject: Add an additional check in raw_connect_works for the Hurd.
| File | + | − |
|---|---|---|
| src/test/perl/PostgreSQL/Test/Cluster.pm | 2 | 1 |
From b5638c1959308665486ca9241997d48cae1485eb Mon Sep 17 00:00:00 2001
From: Michael Banck <mbanck@debian.org>
Date: Fri, 13 Feb 2026 16:34:45 +0100
Subject: [PATCH v1] Add an additional check in raw_connect_works for the Hurd.
The function raw_connect_works() tests whether raw sockets work for the
postmaster TAP tests. While creating the socket does work on the Hurd,
the TAP test does a subsequent send() on it which fails on the Hurd with
"Cannot determine peer address". To circumvent this, try a send() and
catch this error as well.
---
src/test/perl/PostgreSQL/Test/Cluster.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm
index e267ba868fe..ee3170660fc 100644
--- a/src/test/perl/PostgreSQL/Test/Cluster.pm
+++ b/src/test/perl/PostgreSQL/Test/Cluster.pm
@@ -380,9 +380,10 @@ sub raw_connect_works
{
eval {
my $sock = $self->raw_connect();
+ $sock->send('foo');
$sock->close();
};
- if ($@ =~ /not implemented/)
+ if ($@ =~ /not implemented/ or $@ =~ /Cannot determine peer address/)
{
diag "IO::Socket::UNIX does not work: $@";
return 0;
--
2.39.5