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

Commit08cf04b

Browse files
committed
Hack back-branch SSL tests to avoid intermittent buildfarm failures.
Buildfarm member eelpout sometimes reports the wrong error message foran SSL connection failure. In HEAD, this problem is believed to besolved by commit1f39a1c, but I'm as yet unwilling to back-patch that.The problem seems fairly unlikely to be an issue in the field, since (asfar as we can tell) it happens only during a failure of a local-loopbackSSL connection, and it's improbable even then. It seems better to justlive with it for the time being; but let's tweak the regression test toaccept the other error message as a "pass".Needed in v11 only, since older branches didn't check the messagetext anyway.Discussion:https://postgr.es/m/CAEepm=2n6Nv+5tFfe8YnkUm1fXgvxR0Mm1FoD+QKG-vLNGLyKg@mail.gmail.com
1 parentcba8fc6 commit08cf04b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/test/ssl/t/001_ssltests.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
test_connect_fails(
351351
$common_connstr,
352352
"user=ssltestuser sslcert=ssl/client-revoked.crt sslkey=ssl/client-revoked_tmp.key",
353-
qr/SSL error/,
353+
qr/SSL error|server closed the connection unexpectedly/,
354354
"certificate authorization fails with revoked client cert");
355355

356356
# intermediate client_ca.crt is provided by client, and isn't in server's ssl_ca_file
@@ -363,7 +363,8 @@
363363
"sslmode=require sslcert=ssl/client+client_ca.crt",
364364
"intermediate client certificate is provided by client");
365365
test_connect_fails($common_connstr,"sslmode=require sslcert=ssl/client.crt",
366-
qr/SSL error/,"intermediate client certificate is missing");
366+
qr/SSL error|server closed the connection unexpectedly/,
367+
"intermediate client certificate is missing");
367368

368369
# clean up
369370
unlink("ssl/client_tmp.key","ssl/client_wrongperms_tmp.key",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp