pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix issues with TAP tests of pg_verify_checksums
Date: Tue, 20 Nov 2018 01:22:16 +0000
Message-ID: <E1gOuk4-0001ch-K2@gemulon.postgresql.org> (raw)

Fix issues with TAP tests of pg_verify_checksums

Two issues have been spotted and get fixed here:
- When checking for corrupted files, make sure that pg_verify_checksums
complains about the correct file.  In order to make the logic more
robust, all files created are immediately removed once checks on them
are done.  The error message generated by pg_verify_checksums also now
includes the file name it sees as corrupted.
- Before running corruption-related tests, empty files are generated
which used names mapping with the corrupted files, potentially leading
to conflicts.  So use different set of names for both.

Author: Michael Banck
Discussion: https://postgr.es/m/20181119181119.GC23740@nighthawk.caipicrew.dd-dns.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9685d7383ab48ebe6a6213530f64e4dc67776583

Modified Files
--------------
src/bin/pg_verify_checksums/t/002_actions.pl | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)



Message-ID: <E1gOuk4-0001ch-K2@gemulon.postgresql.org>
Permalink:  ../E1gOuk4-0001ch-K2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gOuk4-0001ch-K2@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix issues with TAP tests of pg_verify_checksums
  In-Reply-To: <E1gOuk4-0001ch-K2@gemulon.postgresql.org>
  References: <E1gOuk4-0001ch-K2@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox