Merge pull request #308 from arutk/fix_hash_bucket_lock_iter

Fix hash bucket lock iter
This commit is contained in:
Michal Rakowski
2019-10-02 17:22:12 +02:00
committed by GitHub
2 changed files with 49 additions and 27 deletions

View File

@@ -97,7 +97,11 @@ static void ocf_req_hash_lock_rd_test01(void **state)
.hash = {.val = {0, 1, 2, 3, 4, 0, 1}, .count = 7},
.expected_call = {.val = {0, 1, 2, 3, 4}, .count = 5}
},
};
{
.hash = {.val = {1, 2, 3, 4, 0, 1}, .count = 6},
.expected_call = {.val = {0, 1, 2, 3, 4}, .count = 5}
},
};
const unsigned test_case_count = sizeof(test_cases) / sizeof(test_cases[0]);
unsigned i;