Skip to content

Commit

Permalink
fixed zlib test
Browse files Browse the repository at this point in the history
new versions of the library generate a different error code
  • Loading branch information
Cyan4973 committed Jan 16, 2025
1 parent 43626f1 commit 0b96e6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zlibWrapper/examples/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,

/* ===========================================================================
* Test inflate() with large buffers
*/
*/
void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
uLong uncomprLen) {
int err;
Expand Down Expand Up @@ -442,8 +442,8 @@ void test_sync(Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) {
CHECK_ERR(err, "inflateSync");

err = inflate(&d_stream, Z_FINISH);
if (err != Z_DATA_ERROR) {
fprintf(stderr, "inflate should report DATA_ERROR\n");
if (err != Z_STREAM_END) {
fprintf(stderr, "inflate reported %i != %i (Z_STREAM_END)\n", err, Z_STREAM_END);
/* Because of incorrect adler32 */
exit(1);
}
Expand Down

0 comments on commit 0b96e6d

Please sign in to comment.