Skip to content

Commit 4d373e0

Browse files
Ensure that STDERR is empty in connect_ok tests
Connections performed via connect_ok() in TAP tests should not write anything to STDERR. Author: Jacob Champion <pchampion@vmware.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/9D4FFB61-392B-4A2C-B7E4-911797B4AC14@yesql.se Discussion: https://postgr.es/m/ec146256e31afa0542f9fa970ec258c5f1a5f98.camel@vmware.com
1 parent 6538be9 commit 4d373e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/perl/PostgreSQL/Test/Cluster.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,8 +2214,11 @@ sub connect_ok
22142214

22152215
if (defined($params{expected_stdout}))
22162216
{
2217-
like($stdout, $params{expected_stdout}, "$test_name: matches");
2217+
like($stdout, $params{expected_stdout}, "$test_name: stdout matches");
22182218
}
2219+
2220+
is($stderr, "", "$test_name: no stderr");
2221+
22192222
if (@log_like or @log_unlike)
22202223
{
22212224
my $log_contents = PostgreSQL::Test::Utils::slurp_file($self->logfile, $log_location);

0 commit comments

Comments
 (0)