From 113fcda491ef800fbbddfbc08a68d99c6177f3f4 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 7 Aug 2023 21:09:52 +0200 Subject: [PATCH] test/file: don't read overlapping blocks, covered by other test --- test/file/file_reader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/file/file_reader.c b/test/file/file_reader.c index 5c919a70e..b903b752e 100644 --- a/test/file/file_reader.c +++ b/test/file/file_reader.c @@ -207,13 +207,13 @@ skip_over_zero_page() { rv = sqsh__file_reader_init(&reader, &file); assert(rv == 0); - rv = sqsh_file_reader_advance(&reader, 32768 - 1, 7); + rv = sqsh_file_reader_advance(&reader, 32768, 6); assert(rv == 0); size_t size = sqsh_file_reader_size(&reader); - assert(size == 7); + assert(size == 6); const uint8_t *data = sqsh_file_reader_data(&reader); - assert(memcmp(data, "\0foobar", 6) == 0); + assert(memcmp(data, "foobar", 6) == 0); sqsh__file_reader_cleanup(&reader); sqsh__file_cleanup(&file);