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

Appearance settings

Commit b556199

Browse filesBrowse files
committed
Fix potential rare failure in the kerberos TAP tests
Instead of writing a query to psql's stdin, which can cause a failure where psql exits before writing, reporting a write failure with a broken pipe, this changes the logic to use -c. This was not seen in the buildfarm as no animals with a sensitive environment are running the kerberos tests, but let's be safe. HEAD is able to handle the situation as of 6d41dd0 for all the test suites doing connection checks. f44b9b6 has fixed the same problem for the LDAP tests. Discussion: https://postgr.es/m/YGu7ceWAiSNQDgH5@paquier.xyz Backpatch-through: 11
1 parent e7bcfd7 commit b556199
Copy full SHA for b556199

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/test/kerberos/t/001_auth.pl
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.