test: lmb: fix the lmb_alloc_addr() based test cases
authorSughosh Ganu <sughosh.ganu@linaro.org>
Wed, 26 Mar 2025 16:53:36 +0000 (22:23 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 26 Mar 2025 20:05:36 +0000 (14:05 -0600)
commitb052de94fa14577cb5d9e724edeb09fee674d582
tree51568194cf39d5ce1ca8d79d4b76c51ffd4a3748
parent042c8f0cb1ea5f6988e8633799f7b550876f0ae6
test: lmb: fix the lmb_alloc_addr() based test cases

Commit 56f186a68b3 ("lmb: check if a region can be reserved by
lmb_reserve()") fixed the lmb_reserve() and lmb_alloc_addr() API's for
some corner case scenarios, and also added corresonding test cases for
these corner cases. These tests were checking, among other things, the
lmb_alloc_addr() API. The above commit was applied to the next branch.

Subsequently, there was commit 67be24906fe
("lmb: change the return code on lmb_alloc_addr()") which was first
applied on the master branch, and subsequently got merged to next as
part of the rebase. The second commit changes the return value of the
lmb_alloc_addr() API, which now results in some of the tests added as
part of the first commit to fail. Fix those test cases.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
test/lib/lmb.c