Follow up with the PR #31819

This commit is contained in:
Unique-Usman
2024-03-20 15:48:05 +00:00
committed by Luca Boccassi
parent c3a55dc469
commit c0cd99eee6
3 changed files with 67 additions and 35 deletions
+2 -2
View File
@@ -188,13 +188,13 @@ _unused_ static void test_compress_stream(const char *compression,
log_debug("/* create source from %s */", srcfile);
assert_se((src = open(srcfile, O_RDONLY|O_CLOEXEC)) >= 0);
ASSERT_OK((src = open(srcfile, O_RDONLY|O_CLOEXEC)));
log_debug("/* test compression */");
assert_se((dst = mkostemp_safe(pattern)) >= 0);
assert_se(compress(src, dst, -1, &uncompressed_size) >= 0);
ASSERT_OK(compress(src, dst, -1, &uncompressed_size));
if (cat) {
assert_se(asprintf(&cmd, "%s %s | diff %s -", cat, pattern, srcfile) > 0);