projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6538be9
)
Ensure that STDERR is empty in connect_ok tests
author
Daniel Gustafsson
Tue, 15 Feb 2022 10:35:17 +0000
(11:35 +0100)
committer
Daniel Gustafsson
Tue, 15 Feb 2022 10:35:17 +0000
(11:35 +0100)
Connections performed via connect_ok() in TAP tests should not write
anything to STDERR.
Author: Jacob Champion
Reviewed-by: Tom Lane
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/
9D4FFB61
-392B-4A2C-B7E4-
911797B4AC14
@yesql.se
Discussion: https://postgr.es/m/
ec146256e31afa0542f9fa970ec258c5f1a5f98
[email protected]
src/test/perl/PostgreSQL/Test/Cluster.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/test/perl/PostgreSQL/Test/Cluster.pm
b/src/test/perl/PostgreSQL/Test/Cluster.pm
index 41beadff9dd7fafc470e2ab3b5462dae907cb919..ed70eff374bc6bfe0d708bff762aba6398d270fd 100644
(file)
--- a/
src/test/perl/PostgreSQL/Test/Cluster.pm
+++ b/
src/test/perl/PostgreSQL/Test/Cluster.pm
@@
-2214,8
+2214,11
@@
sub connect_ok
if (defined($params{expected_stdout}))
{
- like($stdout, $params{expected_stdout}, "$test_name: matches");
+ like($stdout, $params{expected_stdout}, "$test_name:
stdout
matches");
}
+
+ is($stderr, "", "$test_name: no stderr");
+
if (@log_like or @log_unlike)
{
my $log_contents = PostgreSQL::Test::Utils::slurp_file($self->logfile, $log_location);