Test that shrunk file is backed up correctly.
It's possible, though rare, for a file to shrink during a backup.
There was no issue with the code but having a test is always a good idea.
@@ -470,8 +470,8 @@ testRun(void)
TEST_ASSIGN(
result,
- backupFile(pgFile, false, 9, NULL, false, 0, pgFile, false, false, 1, backupLabel, false, cipherTypeNone, NULL),
- "pg file exists, no repo file, no ignoreMissing, no pageChecksum, no delta, no hasReference");
+ backupFile(pgFile, false, 9999999, NULL, false, 0, pgFile, false, false, 1, backupLabel, false, cipherTypeNone, NULL),
+ "pg file exists and shrunk, no repo file, no ignoreMissing, no pageChecksum, no delta, no hasReference");
((Storage *)storageRepo())->interface.feature = feature;
