pgsql: Improve some psql test code

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve some psql test code
Date: 2022-02-28 13:17:58
Message-ID: E1nOfuX-000I75-L6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve some psql test code

Split psql_like() into two functions psql_like() and psql_fails_like()
and make them mirror the existing command_like() and
command_fails_like() more closely. In particular, follow the
universal convention that the test name is the last argument.

Discussion: https://www.postgresql.org/message-id/3199e176-424e-1bef-f180-c1548466c2da@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fbee60f6a4ff2561f5a5af23959a29967f53fbde

Modified Files
--------------
src/bin/psql/t/001_basic.pl | 59 ++++++++++++++++++++++-----------------------
1 file changed, 29 insertions(+), 30 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-02-28 16:31:41 pgsql: Adjust interaction of libpq pipeline mode with errorMessage rese
Previous Message Michael Paquier 2022-02-28 01:54:36 pgsql: pg_stat_statements: Remove unnecessary call to GetUserId()