1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Fix logical -> bitwise boolean operator in backup unit test.

This unset more than the storageFeatureCompress flag but the test was not affected.

Found on MacOS M1.
This commit is contained in:
David Steele
2021-01-24 08:12:31 -05:00
parent a7d32259cf
commit f95850c546

View File

@ -539,7 +539,7 @@ testRun(void)
// With the expected backupCopyResultCopy, unset the storageFeatureCompress bit for the storageRepo for code coverage
uint64_t feature = storageRepo()->interface.feature;
((Storage *)storageRepo())->interface.feature = feature && ((1 << storageFeatureCompress) ^ 0xFFFFFFFFFFFFFFFF);
((Storage *)storageRepo())->interface.feature = feature & ((1 << storageFeatureCompress) ^ 0xFFFFFFFFFFFFFFFF);
// Create tmp file to make it look like a prior backup file failed partway through to ensure that retries work
TEST_RESULT_VOID(