tests/memrange-test: Correct final end test in test_memrange_steal()
If an inserted region's base wasn't aligned, the resulting range should still cover the original end (original region's base + size) and not the aligned-down base + size. Change-Id: I8f1c9456d6dbab4fa868de5c93fa3656397e54c1 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66607 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
3741e99bd6
commit
c0e3004af0
|
@ -529,7 +529,7 @@ static void test_memrange_steal(void **state)
|
|||
ALIGN_DOWN(res_mock[READONLY_TAG].base, MEMRANGE_ALIGN));
|
||||
assert_int_equal(
|
||||
range_entry_end(ptr),
|
||||
ALIGN_UP(range_entry_base(ptr) + res_mock[READONLY_TAG].size,
|
||||
ALIGN_UP(res_mock[READONLY_TAG].base + res_mock[READONLY_TAG].size,
|
||||
MEMRANGE_ALIGN));
|
||||
}
|
||||
count++;
|
||||
|
|
Loading…
Reference in New Issue