summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2023-06-01 20:02:06 +0200
committerSam Atkins <atkinssj@gmail.com>2023-06-01 20:28:41 +0100
commit54fb9477a4d69efa15c65f62dfbd4a13feec3af9 (patch)
treec18a1a1af9bed4c3705cb3d15673714a3b67d90a
parent968f2b3eebe8435326595dafafc63c65c7a10c8a (diff)
downloadserenity-54fb9477a4d69efa15c65f62dfbd4a13feec3af9.zip
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.
-rw-r--r--Tests/LibC/TestMemalign.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibC/TestMemalign.cpp b/Tests/LibC/TestMemalign.cpp
index 51840fec5a..fd2bda43e3 100644
--- a/Tests/LibC/TestMemalign.cpp
+++ b/Tests/LibC/TestMemalign.cpp
@@ -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()