tests: Update tests to reflect current behavior of decompress

This commit is contained in:
Jakub Jelen 2020-03-02 18:29:56 +01:00 committed by Frank Morgner
parent c3924859a9
commit aeef29238e
1 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ static void torture_compression_decompress_empty(void **state)
rv = sc_decompress(buf, &buflen, data, datalen, COMPRESSION_AUTO);
assert_int_equal(rv, SC_ERROR_UNKNOWN_DATA_RECEIVED);
assert_int_equal(buflen, 0);
assert_int_equal(buflen, sizeof(buf)); /* not touched */
}
static void torture_compression_decompress_gzip_empty(void **state)
@ -222,7 +222,7 @@ static void torture_compression_decompress_gzip_empty(void **state)
rv = sc_decompress(buf, &buflen, data, datalen, COMPRESSION_GZIP);
assert_int_equal(rv, SC_ERROR_UNKNOWN_DATA_RECEIVED);
assert_int_equal(buflen, 0);
assert_int_equal(buflen, sizeof(buf)); /* not touched */
}
static void torture_compression_decompress_zlib_empty(void **state)
@ -235,7 +235,7 @@ static void torture_compression_decompress_zlib_empty(void **state)
rv = sc_decompress(buf, &buflen, data, datalen, COMPRESSION_ZLIB);
assert_int_equal(rv, SC_ERROR_UNKNOWN_DATA_RECEIVED);
assert_int_equal(buflen, 0);
assert_int_equal(buflen, sizeof(buf)); /* not touched */
}
static void torture_compression_decompress_header(void **state)