mirror of
https://github.com/AltraMayor/f3.git
synced 2025-09-09 07:09:35 -04:00
f3probe: relax cache size comparision in unit test
This commit is contained in:
parent
3d04fc7b55
commit
e7769bb77d
@ -289,11 +289,10 @@ static int unit_test(const char *filename)
|
|||||||
if (real_size_byte == item->real_size_byte &&
|
if (real_size_byte == item->real_size_byte &&
|
||||||
announced_size_byte == item->fake_size_byte &&
|
announced_size_byte == item->fake_size_byte &&
|
||||||
wrap == item->wrap &&
|
wrap == item->wrap &&
|
||||||
/* We don't compare cache size because
|
/* probe_device() returns an upper bound of
|
||||||
* probe_device() only returns an estimate.
|
* the cache size.
|
||||||
* item_cache_byte ==
|
|
||||||
* (cache_size_block << block_order) &&
|
|
||||||
*/
|
*/
|
||||||
|
item_cache_byte <= (cache_size_block << block_order) &&
|
||||||
!need_reset &&
|
!need_reset &&
|
||||||
block_order == item->block_order) {
|
block_order == item->block_order) {
|
||||||
success++;
|
success++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user