diff options
author | Raymond Mao <raymond.mao@linaro.org> | 2024-02-03 08:36:21 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-02-29 09:24:22 -0500 |
commit | 67254214930cd2cb52279b01690c1f820a7f83db (patch) | |
tree | 66583957697b633a9f826a7d3a029ee84606f032 /test/bloblist.c | |
parent | 1c4751fd1ac7bda72ab72ce352dc9b2131df2807 (diff) |
bloblist: check bloblist with specified buffer size
Instead of expecting the bloblist total size to be the same as the
pre-allocated buffer size, practically we are more interested in
whether the pre-allocated buffer size is bigger than the bloblist
total size.
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'test/bloblist.c')
-rw-r--r-- | test/bloblist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bloblist.c b/test/bloblist.c index 17d9dd03d07..7dab9addf82 100644 --- a/test/bloblist.c +++ b/test/bloblist.c @@ -207,7 +207,7 @@ static int bloblist_test_checksum(struct unit_test_state *uts) hdr->flags++; hdr->total_size--; - ut_asserteq(-EFBIG, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); + ut_asserteq(-EIO, bloblist_check(TEST_ADDR, TEST_BLOBLIST_SIZE)); hdr->total_size++; hdr->spare++; |