From 115ba7e0830a00a7b0bce5887c8ffeba78e3ab53 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 9 Jun 2023 13:53:53 +0200 Subject: libio: remove eof flag from istream_t interface Signed-off-by: David Oberhollenzer --- lib/io/test/istream_mem.c | 1 - lib/io/test/istream_read.c | 1 - lib/io/test/istream_skip.c | 1 - lib/io/test/stream_splice.c | 1 - lib/io/test/xfrm.c | 1 - 5 files changed, 5 deletions(-) (limited to 'lib/io/test') diff --git a/lib/io/test/istream_mem.c b/lib/io/test/istream_mem.c index c74b1f5..632b1f5 100644 --- a/lib/io/test/istream_mem.c +++ b/lib/io/test/istream_mem.c @@ -72,7 +72,6 @@ int main(int argc, char **argv) } TEST_EQUAL_UI(in->buffer_used, 0); - TEST_ASSERT(in->eof); sqfs_drop(in); return EXIT_SUCCESS; } diff --git a/lib/io/test/istream_read.c b/lib/io/test/istream_read.c index 7029c38..176832b 100644 --- a/lib/io/test/istream_read.c +++ b/lib/io/test/istream_read.c @@ -100,7 +100,6 @@ int main(int argc, char **argv) TEST_ASSERT(read_off <= end2); } - TEST_ASSERT(dummy->eof); TEST_ASSERT(dummy->buffer_used == 0); sqfs_drop(dummy); return EXIT_SUCCESS; diff --git a/lib/io/test/istream_skip.c b/lib/io/test/istream_skip.c index c54a9cd..15d7f5d 100644 --- a/lib/io/test/istream_skip.c +++ b/lib/io/test/istream_skip.c @@ -89,7 +89,6 @@ int main(int argc, char **argv) TEST_ASSERT(read_off <= end2); } - TEST_ASSERT(dummy->eof); TEST_ASSERT(dummy->buffer_used == 0); sqfs_drop(dummy); return EXIT_SUCCESS; diff --git a/lib/io/test/stream_splice.c b/lib/io/test/stream_splice.c index ab8a0e4..223c39d 100644 --- a/lib/io/test/stream_splice.c +++ b/lib/io/test/stream_splice.c @@ -91,7 +91,6 @@ int main(int argc, char **argv) TEST_EQUAL_UI(total, out_offset); } - TEST_ASSERT(in->eof); TEST_ASSERT(in->buffer_used == 0); TEST_EQUAL_UI(total, end2); TEST_EQUAL_UI(out_offset, end2); diff --git a/lib/io/test/xfrm.c b/lib/io/test/xfrm.c index ffb1f37..95b1f72 100644 --- a/lib/io/test/xfrm.c +++ b/lib/io/test/xfrm.c @@ -440,7 +440,6 @@ static void run_unpack_test(const void *blob, size_t size) TEST_EQUAL_I(ret, 0); TEST_EQUAL_UI(mem_istream->buffer_used, 0); - TEST_ASSERT(mem_istream->eof); sqfs_drop(istream); TEST_EQUAL_UI(((sqfs_object_t *)mem_istream)->refcount, 1); -- cgit v1.2.3