You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Add zero-length file to mock/all test.
This commit is contained in:
@@ -107,8 +107,11 @@ sub testFileCreate
|
||||
open($hFile, '>', $strFile)
|
||||
or confess "unable to open ${strFile} for writing";
|
||||
|
||||
syswrite($hFile, $strContent)
|
||||
or confess "unable to write to ${strFile}: $!";
|
||||
if (defined($strContent) && $strContent ne '')
|
||||
{
|
||||
syswrite($hFile, $strContent)
|
||||
or confess "unable to write to ${strFile}: $!";
|
||||
}
|
||||
|
||||
close($hFile);
|
||||
|
||||
|
||||
@@ -862,6 +862,8 @@ sub run
|
||||
$oHostDbMaster->manifestFileCreate(
|
||||
\%oManifest, MANIFEST_TARGET_PGDATA, 'changesize.txt', 'SIZE', '88087292ed82e26f3eb824d0bffc05ccf7a30f8d', $lTime,
|
||||
undef, true);
|
||||
$oHostDbMaster->manifestFileCreate(
|
||||
\%oManifest, MANIFEST_TARGET_PGDATA, 'zerosize.txt', '', undef, $lTime - 100, undef, true);
|
||||
|
||||
# Create temp dir and file that will be ignored
|
||||
if (!$bRemote)
|
||||
|
||||
Reference in New Issue
Block a user