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.
This commit is contained in:
Benjamin Otte 2024-05-28 16:47:48 +02:00
parent 01d86eab66
commit b69df2bc4d

View File

@ -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);
}