Skip to content
Snippets Groups Projects
Commit 1d815828 authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

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
parent bd3fc34c
No related branches found
No related tags found
1 merge request!4884test: clock: reduce long test duration
Pipeline #435477 failed with stage
in 23 minutes and 44 seconds
......@@ -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,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment