From b69df2bc4dcc8293faf90a4248c7e0f171b73215 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 28 May 2024 16:47:48 +0200 Subject: [PATCH] testsuite: Shrink maximum texture size in test 1MB textures can lead to 20s runtimes - which with asan CI being a lot slower can be a loooong time and cause timeouts. Limiting them to 16kB still allows hitting max texture size sometimes but makes sure the test only runs for 3-4s worst case. I hope that doesn't trigger timeouts even under asan. --- testsuite/gdk/memorytexture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/gdk/memorytexture.c b/testsuite/gdk/memorytexture.c index 4e25643f2a..51b85cd0e4 100644 --- a/testsuite/gdk/memorytexture.c +++ b/testsuite/gdk/memorytexture.c @@ -1319,7 +1319,7 @@ test_download_random (gconstpointer data) width = g_test_rand_int_range (1, 40) * g_test_rand_int_range (1, 40); height = g_test_rand_int_range (1, 40) * g_test_rand_int_range (1, 40); } - while (width * height >= 1024 * 1024); + while (width * height >= 32 * 1024); test_download (data, width, height, 1); }