From 24a53c246fccb52405b84f1227be00e3bfaf2a3b Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:55:18 -0400 Subject: [PATCH] Make sure `seek` succeeds in `io.Limited_Reader` test setup --- tests/core/io/test_core_io.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/core/io/test_core_io.odin b/tests/core/io/test_core_io.odin index b9de18c6e..56fc9a0cb 100644 --- a/tests/core/io/test_core_io.odin +++ b/tests/core/io/test_core_io.odin @@ -467,7 +467,12 @@ test_limited_reader :: proc(t: ^testing.T) { ok: bool for end in 0.., %v", pos, seek_err) { + return + } + results, ok = _test_stream(t, io.limited_reader_init(&lr, bs, end), buf[:end]) if !ok { log.debugf("buffer[:%i] := %v", end, buf[:end])