Make PostgreSQL::Test::Cluster::run_log() return a useful value.
authorRobert Haas <rhaas@postgresql.org>
Tue, 29 Mar 2022 20:29:49 +0000 (16:29 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 29 Mar 2022 20:58:24 +0000 (16:58 -0400)
Curently, some TAP test that directly call the underlying function
PostgreSQL::Test::Utils::run_log() care about the return value, but
none of those that call it via PostgreSQL::Test::Cluster::run_log() care.
However, I'd like to add a test that will care, so adjust this function
to return whatever it gets back from the underlying function, just as
we do for a number of other functions in this module.

Discussion: http://postgr.es/m/CA+Tgmobj6u-nWF-j=FemygUhobhryLxf9h-wJN7W-2rSsseHNA@mail.gmail.com

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

index bee6aacf47cf39bea1d4b6d325481f1e98d46927..b6e33516110a15324a3a435bc06a02baa9eb8e7d 100644 (file)
@@ -2502,8 +2502,7 @@ sub run_log
 
        local %ENV = $self->_get_env();
 
-       PostgreSQL::Test::Utils::run_log(@_);
-       return;
+       return PostgreSQL::Test::Utils::run_log(@_);
 }
 
 =pod