You've already forked pgbackrest
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:
@ -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(
|
||||
|
Reference in New Issue
Block a user