pgsql: Report test_atomic_ops() failures consistently, via macros.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Report test_atomic_ops() failures consistently, via macros.
Date: 2019-10-05 17:08:38
Message-ID: E1iGnXq-0001K7-Aj@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Report test_atomic_ops() failures consistently, via macros.

This prints the unexpected value in more failure cases, and it removes
forty-eight hand-maintained error messages. Back-patch to 9.5, which
introduced these tests.

Reviewed (in an earlier version) by Andres Freund.

Discussion: https://postgr.es/m/20190915160021.GA24376@alvherre.pgsql

Branch
------
master

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

Modified Files
--------------
src/test/regress/regress.c | 227 ++++++++++++++++-----------------------------
1 file changed, 81 insertions(+), 146 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2019-10-05 18:53:54 pgsql: Change MemoryContextMemAllocated to return Size
Previous Message Tom Lane 2019-10-05 16:27:08 pgsql: Avoid use of wildcard in pg_waldump's .gitignore.

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2019-10-05 17:34:00 Re: [HACKERS] Deadlock in XLogInsert at AIX
Previous Message Nikolay Shaplov 2019-10-05 15:12:26 Re: [PATCH] Do not use StdRdOptions in Access Methods