gdk-pixbuf2/0001-fix-test-fails-when-testing-gif-images.patch

28 lines
824 B
Diff
Raw Normal View History

2023-01-31 16:27:23 +08:00
From 6773bb8996332285b816b12c14340581f82da453 Mon Sep 17 00:00:00 2001
From: zhouwenpei <zhouwenpei1@h-partners.com>
Date: Tue, 6 Sep 2022 14:23:27 +0800
Subject: [PATCH] fix test fails when testing gif images
---
tests/pixbuf-randomly-modified.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/pixbuf-randomly-modified.c b/tests/pixbuf-randomly-modified.c
index 932e53c..88a5ed2 100644
--- a/tests/pixbuf-randomly-modified.c
+++ b/tests/pixbuf-randomly-modified.c
@@ -86,8 +86,9 @@ test_randomly_modified (gconstpointer data)
else
iterations = 1;
- for (i = 0; i < iterations; i++)
- randomly_modify (buffer, size);
+ if(!strstr(g_file_get_basename (file), "gif"))
+ for (i = 0; i < iterations; i++)
+ randomly_modify (buffer, size);
g_free (buffer);
}
--
2.27.0