1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 05:00:46 +00:00

LibC+Tests: Reduce fuzz iteration in TestMemalign to speed up CI

In AArch CI, this test alone takes up 110.6 seconds. In x86_64 CI, it
takes up 68.4 seconds. There is no reason to spend this much time and
this many trials on this.

Let's reduce the number of iterations to 500. This should still surface
any misalignment with high probability, and should speed up the CI time
from minutes to seconds.
This commit is contained in:
Ben Wiederhake 2023-06-01 20:02:06 +02:00 committed by Sam Atkins
parent 968f2b3eeb
commit 54fb9477a4

View File

@ -9,7 +9,7 @@
#include <mallocdefs.h>
#include <stdlib.h>
static constexpr size_t runs = 5000;
static constexpr size_t runs = 500;
static constexpr size_t ptrs_per_run = 20;
static size_t random_alignment()