# Copyright (c) 2021, PostgreSQL Global Development Group # Test the behavior of pg_verifybackup when the backup manifest has # problems. use strict; use warnings; use Cwd; use Config; use PostgresNode; use TestLib; use Test::More tests => 58; my $tempdir = TestLib::tempdir; test_bad_manifest( 'input string ended unexpectedly', qr/could not parse backup manifest: parsing failed/, <', "$tempdir/backup_manifest") || die "open: $!"; print $fh $manifest_contents; close($fh); command_fails_like([ 'pg_verifybackup', $tempdir ], $regexp, $test_name); return; }