diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-19 20:17:22 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-20 14:18:13 +0200 |
commit | a428856a212fc9f24374de84b7f3b781502c8cf6 (patch) | |
tree | 2522938c5ced42f75f8de024e133fae501ba7f4e /test/unit | |
parent | becffe4567543e3e0c51c728a4b266cf94fd2cdf (diff) | |
download | lvm2-a428856a212fc9f24374de84b7f3b781502c8cf6.tar.gz |
tests: fix test of read buffer
Patch 7aba7fe68b6da2ca8ec7b01f5730396d64426fb0 incorrectly
converted SECTOR_SIZE * BLOCK_SIZE_SECTORS to sizeof(f->data).
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/io_engine_t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/io_engine_t.c b/test/unit/io_engine_t.c index a1b219530..c864fa338 100644 --- a/test/unit/io_engine_t.c +++ b/test/unit/io_engine_t.c @@ -154,7 +154,7 @@ static void _test_read(void *fixture) T_ASSERT(io.completed); T_ASSERT(!io.error); - _check_buffer(f->data, 123, sizeof(f->data)); + _check_buffer(f->data, 123, SECTOR_SIZE * BLOCK_SIZE_SECTORS); } static void _test_write(void *fixture) |