unit test: extend hash bucket locking test

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2019-10-02 15:57:10 -04:00
parent f08f8aa96e
commit a3f3a79f75

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;