From ccd8f0ec32b9ca82a727b35fcc8724ea6f6d3556 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Tue, 15 Jan 2019 23:23:58 +0000 Subject: [PATCH 3/3] Fix misc test Signed-off-by: Jonathan Dieter --- tests/test_misc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_misc.c b/tests/test_misc.c index 9d528c7..06144a6 100644 --- a/tests/test_misc.c +++ b/tests/test_misc.c @@ -531,8 +531,8 @@ compressfile_test_text_file(Copyfiletest *copyfiletest, GError *tmp_err = NULL; g_assert(!g_file_test(copyfiletest->dst_file, G_FILE_TEST_EXISTS)); - ret = cr_compress_file(TEST_TEXT_FILE, copyfiletest->dst_file, - CR_CW_GZ_COMPRESSION, &tmp_err); + ret = cr_compress_file(TEST_TEXT_FILE, &(copyfiletest->dst_file), + CR_CW_GZ_COMPRESSION, NULL, FALSE, &tmp_err); g_assert(!tmp_err); g_assert_cmpint(ret, ==, CRE_OK); g_assert(g_file_test(copyfiletest->dst_file, G_FILE_TEST_IS_REGULAR)); @@ -556,8 +556,9 @@ compressfile_with_stat_test_text_file(Copyfiletest *copyfiletest, g_assert(!tmp_err); g_assert(!g_file_test(copyfiletest->dst_file, G_FILE_TEST_EXISTS)); - ret = cr_compress_file_with_stat(TEST_TEXT_FILE, copyfiletest->dst_file, - CR_CW_GZ_COMPRESSION, stat, &tmp_err); + ret = cr_compress_file_with_stat(TEST_TEXT_FILE, ©filetest->dst_file, + CR_CW_GZ_COMPRESSION, stat, NULL, FALSE, + &tmp_err); g_assert(!tmp_err); g_assert_cmpint(ret, ==, CRE_OK); g_assert(g_file_test(copyfiletest->dst_file, G_FILE_TEST_IS_REGULAR)); -- 2.20.1