This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 73641d89ee6b312b0c7c77190b11662ec3d35e80
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Mon Mar 3 08:50:03 2025 +0100
test: Some trivial ouput tweaks
---
test/test_load_2.cpp | 12 +++---------
test/test_save.cpp | 6 +++---
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/test/test_load_2.cpp b/test/test_load_2.cpp
index 3c0c5a7..747d25e 100644
--- a/test/test_load_2.cpp
+++ b/test/test_load_2.cpp
@@ -165,28 +165,22 @@ TEST(LOAD2, load_1)
im = imlib_load_image(fn);
ASSERT_TRUE(im) << "cannot load file: " << fn;
-
crc = image_get_crc32(im);
- EXPECT_EQ(crc, tii[i].crc) << "wrong crc file: " << fn
- << " expected: " << tii[i].crc << " actual: " << crc;
+ EXPECT_EQ(crc, tii[i].crc) << "imlib_load_image";
imlib_context_set_image(im);
imlib_free_image_and_decache();
im = imlib_load_image_frame(fn, 0);
ASSERT_TRUE(im) << "cannot load file: " << fn;
crc = image_get_crc32(im);
- EXPECT_EQ(crc, tii[i].crc) << "wrong crc file: " << fn
- << " expected: " << tii[i].crc << " actual: " << crc;
-
+ EXPECT_EQ(crc, tii[i].crc) << "imlib_load_frame 0";
imlib_context_set_image(im);
imlib_free_image_and_decache();
im = imlib_load_image_frame(fn, 1);
ASSERT_TRUE(im) << "cannot load file: " << fn;
crc = image_get_crc32(im);
- EXPECT_EQ(crc, tii[i].crc) << "wrong crc file: " << fn
- << " expected: " << tii[i].crc << " actual: " << crc;
-
+ EXPECT_EQ(crc, tii[i].crc) << "imlib_load_frame 1";
imlib_context_set_image(im);
imlib_free_image_and_decache();
}
diff --git a/test/test_save.cpp b/test/test_save.cpp
index c474f93..cd3a51f 100644
--- a/test/test_save.cpp
+++ b/test/test_save.cpp
@@ -156,7 +156,7 @@ test_save_1(const char *file, int prog, int check = 0)
imr = imlib_load_image(fileo);
ASSERT_TRUE(imr);
crc = image_get_crc32(imr);
- EXPECT_EQ(exts[i].crc[check - 1], crc);
+ EXPECT_EQ(crc, exts[i].crc[check - 1]);
imlib_context_set_image(imr);
imlib_free_image_and_decache();
}
@@ -282,7 +282,7 @@ test_save_2(const char *file, const char *fmt, bool load_imm, bool sok,
im = imlib_load_image(fileo);
ASSERT_TRUE(im);
crc = image_get_crc32(im);
- EXPECT_EQ(crc_exp, crc);
+ EXPECT_EQ(crc, crc_exp);
D("ok\n");
unlink(fileo);
@@ -315,7 +315,7 @@ test_save_2(const char *file, const char *fmt, bool load_imm, bool sok,
im = imlib_load_image(fileo);
ASSERT_TRUE(im);
crc = image_get_crc32(im);
- EXPECT_EQ(crc_exp, crc);
+ EXPECT_EQ(crc, crc_exp);
D("ok\n");
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.