mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Fix returning limited vs short read.
This commit is contained in:
1 parent
bd6d2ea3a1
commit
fa18eec3e9
4 files changed
+28
-18
No files matched your search
+5
-4
@@ -238,8 +238,9 @@ void test_puffs_gif_lzw_decode(const char* src_filename,
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (status != PUFFS_GIF_SUSPENSION_SHORT_READ) {
|
||||
FAIL("status: got %d, want %d", status, PUFFS_GIF_SUSPENSION_SHORT_READ);
|
||||
if (status != PUFFS_GIF_SUSPENSION_LIMITED_READ) {
|
||||
FAIL("status: got %d, want %d", status,
|
||||
PUFFS_GIF_SUSPENSION_LIMITED_READ);
|
||||
goto cleanup1;
|
||||
}
|
||||
if (src.ri < old_ri) {
|
||||
@@ -403,8 +404,8 @@ void test_puffs_gif_decode(const char* filename,
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (got != PUFFS_GIF_SUSPENSION_SHORT_READ) {
|
||||
FAIL("status: got %d, want %d", got, PUFFS_GIF_SUSPENSION_SHORT_READ);
|
||||
if (got != PUFFS_GIF_SUSPENSION_LIMITED_READ) {
|
||||
FAIL("status: got %d, want %d", got, PUFFS_GIF_SUSPENSION_LIMITED_READ);
|
||||
goto cleanup1;
|
||||
}
|
||||
if (src.ri < old_ri) {
|
||||
|
||||
Reference in new issue
Block a user