LibTest: Ensure other time statistic doesn't underflow
Some checks are pending
CI / Lagom (arm64, Sanitizer_CI, false, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (x86_64, Fuzzers_CI, false, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, false, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (arm64, macos-15, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (x86_64, ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

This commit is contained in:
Jess 2025-02-20 04:40:10 +13:00 committed by Jelle Raaijmakers
commit 23cdd78f1a
Notes: github-actions[bot] 2025-04-10 09:18:06 +00:00
2 changed files with 30 additions and 19 deletions

View file

@ -9,6 +9,7 @@
#include <AK/ByteString.h>
#include <AK/Function.h>
#include <AK/Time.h>
#include <AK/Vector.h>
#include <LibTest/Macros.h>
#include <LibTest/Randomized/RandomnessSource.h>
@ -65,8 +66,8 @@ public:
private:
static TestSuite* s_global;
Vector<NonnullRefPtr<TestCase>> m_cases;
u64 m_testtime = 0;
u64 m_benchtime = 0;
AK::Duration m_test_time;
AK::Duration m_bench_time;
ByteString m_suite_name;
u64 m_benchmark_repetitions = 1;
u64 m_randomized_runs = 100;