From 083d711d3429e41a29411bebe9eef7834907830e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 12 Apr 2025 11:20:05 +0200 Subject: [PATCH] DebugTools: lower threshold for a flaky Emscripten test. I'm tired of this one failing basically every time on the Emscripten WebGL 1 CI build. --- src/Magnum/DebugTools/Test/FrameProfilerTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/DebugTools/Test/FrameProfilerTest.cpp b/src/Magnum/DebugTools/Test/FrameProfilerTest.cpp index b9b5f0087..cc42b7cc8 100644 --- a/src/Magnum/DebugTools/Test/FrameProfilerTest.cpp +++ b/src/Magnum/DebugTools/Test/FrameProfilerTest.cpp @@ -1134,11 +1134,11 @@ void FrameProfilerTest::gl() { /* 3/4 frames took 1 ms, the ideal average is 0.75 ms. Can't test upper bound because (especially on overloaded CIs) it all takes a magnitude - more than expected. Emscripten builds have it as low as 0.5, account for + more than expected. Emscripten builds have it as low as 0.4, account for that. */ if(data.values & FrameProfilerGL::Value::CpuDuration) { CORRADE_VERIFY(profiler.isMeasurementAvailable(FrameProfilerGL::Value::CpuDuration)); - CORRADE_COMPARE_AS(profiler.cpuDurationMean(), 0.50*1000*1000, + CORRADE_COMPARE_AS(profiler.cpuDurationMean(), 0.40*1000*1000, TestSuite::Compare::GreaterOrEqual); }