[vlc-commits] [Git][videolan/vlc][master] test: clock: reduce long test duration

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Feb 8 08:59:14 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
1d815828 by Thomas Guillem at 2024-02-08T08:39:50+00:00
test: clock: reduce long test duration

3 tests were updated 24h of points. Reduce it to 12h to fall under the
timeout for most machines.

It is still possible to force a custom duration when running a test
manually from command line.

Fixes #28508

- - - - -


1 changed file:

- test/src/clock/clock.c


Changes:

=====================================
test/src/clock/clock.c
=====================================
@@ -692,7 +692,7 @@ static void monotonic_convert_paused_run(const struct clock_ctx *ctx)
     convert_paused_common(ctx, ctx->slave);
 }
 
-#define VLC_TICK_24H VLC_TICK_FROM_SEC(24 * 60 * 60)
+#define VLC_TICK_12H VLC_TICK_FROM_SEC(12 * 60 * 60)
 #define VLC_TICK_2H VLC_TICK_FROM_SEC(2 * 60 * 60)
 #define DEFAULT_STREAM_INCREMENT VLC_TICK_FROM_MS(100)
 
@@ -740,20 +740,20 @@ static struct clock_scenario clock_scenarios[] = {
     .check = drift_check,
 },
 {
-    .name = "drift_864",
-    .desc = "a drift of 864ms in 24h is handled",
+    .name = "drift_432",
+    .desc = "a drift of 432ms in 12h is handled",
     .type = CLOCK_SCENARIO_UPDATE,
-    INIT_SYSTEM_STREAM_TIMING(VLC_TICK_24H, DEFAULT_STREAM_INCREMENT, 0),
-    .total_drift_duration = VLC_TICK_FROM_MS(864),
+    INIT_SYSTEM_STREAM_TIMING(VLC_TICK_12H, DEFAULT_STREAM_INCREMENT, 0),
+    .total_drift_duration = VLC_TICK_FROM_MS(432),
     .update = drift_update,
     .check = drift_check,
 },
 {
-    .name = "drift_-864",
-    .desc = "a drift of -864ms in 24h is handled",
+    .name = "drift_-432",
+    .desc = "a drift of -432ms in 12h is handled",
     .type = CLOCK_SCENARIO_UPDATE,
-    INIT_SYSTEM_STREAM_TIMING(VLC_TICK_24H, DEFAULT_STREAM_INCREMENT, 0),
-    .total_drift_duration = -VLC_TICK_FROM_MS(864),
+    INIT_SYSTEM_STREAM_TIMING(VLC_TICK_12H, DEFAULT_STREAM_INCREMENT, 0),
+    .total_drift_duration = -VLC_TICK_FROM_MS(432),
     .update = drift_update,
     .check = drift_check,
 },
@@ -761,8 +761,8 @@ static struct clock_scenario clock_scenarios[] = {
     .name = "drift_sudden",
     .desc = "a sudden drift is handled",
     .type = CLOCK_SCENARIO_UPDATE,
-    INIT_SYSTEM_STREAM_TIMING(VLC_TICK_24H, DEFAULT_STREAM_INCREMENT, 0),
-    .total_drift_duration = VLC_TICK_FROM_MS(864),
+    INIT_SYSTEM_STREAM_TIMING(VLC_TICK_12H, DEFAULT_STREAM_INCREMENT, 0),
+    .total_drift_duration = VLC_TICK_FROM_MS(432),
     .update = drift_sudden_update,
     .check = drift_check,
 },



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1d815828ce5858a8090a1a880d2ad1c5bce34628

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1d815828ce5858a8090a1a880d2ad1c5bce34628
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list