Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit92273d4

Browse files
committed
Fix potential rare failure in the kerberos TAP tests
Instead of writing a query to psql's stdin, which can cause a failurewhere psql exits before writing, reporting a write failure with a brokenpipe, this changes the logic to use -c. This was not seen in thebuildfarm as no animals with a sensitive environment are running thekerberos tests, but let's be safe.HEAD is able to handle the situation as of6d41dd0 for all the testsuites doing connection checks. f44b9b6 has fixed the same problem forthe LDAP tests.Discussion:https://postgr.es/m/YGu7ceWAiSNQDgH5@paquier.xyzBackpatch-through: 11
1 parentdd5b7e4 commit92273d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/test/kerberos/t/001_auth.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,15 @@ sub test_access
177177
# need to connect over TCP/IP for Kerberos
178178
my ($res,$stdoutres,$stderrres) =$node->psql(
179179
'postgres',
180-
"$query",
180+
undef,
181181
extra_params=> [
182182
'-XAtd',
183183
$node->connstr('postgres')
184184
." host=$host hostaddr=$hostaddr$gssencmode",
185185
'-U',
186-
$role
186+
$role,
187+
'-c',
188+
$query
187189
]);
188190

189191
# If we get a query result back, it should be true.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp