Fix some issues with TAP tests of pg_basebackup and pg_verify_checksums
authorMichael Paquier <michael@paquier.xyz>
Mon, 18 Feb 2019 05:23:30 +0000 (14:23 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 18 Feb 2019 05:23:30 +0000 (14:23 +0900)
commita916bdc496a9d3fde48ca7c72478e7e4aecc5597
treea57451b11ccb3dd3914b386037120ca088487819
parentf0cce9fcb5fd9f4158dbf5dfe11f263ad3b7b1dd
Fix some issues with TAP tests of pg_basebackup and pg_verify_checksums

ee9e145 has fixed the tests of pg_basebackup for checksums a first time,
still one seek() call missed the shot.  Also, the data written in files
to emulate corruptions was not actually writing zeros as the quoting
style was incorrect.

Backpatch the portion for pg_basebackup to v11 where these tests have
been introduced.  The tests of pg_verify_checksums are new as of v12.

Author: Michael Banck
Discussion: https://postgr.es/m/1550153276.796.35.camel@credativ.de
Backpatch-through: 11
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_verify_checksums/t/002_actions.pl