From 47293a4f116e04a88b0797bafad0c98b4393b744 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 5 Nov 2026 13:52:17 +0100 Subject: Clamp every elapsed time span at zero, using a set of helper functions --- tests/stubs.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/stubs.c') diff --git a/tests/stubs.c b/tests/stubs.c index f7ac679..fd47a68 100644 --- a/tests/stubs.c +++ b/tests/stubs.c @@ -26,14 +26,11 @@ long io_trywrite(long d, const char *buf, long len) { /* trackerlogic.c is under test, and starting it up starts every module it leans on. None of them is driven by these tests, so they are answered here rather than linked in and left to run threads of their own. */ -void clean_init(void) {} -void clean_deinit(void) {} -int clean_single_torrent(ot_torrent *torrent) { - (void)torrent; - return 0; -} +/* ot_clean.c is in the unit build for t_clean, so its thread control is the + real thing and only the stats hook it calls is stubbed here. */ void fullscrape_init(void) {} void fullscrape_deinit(void) {} +void stats_cleanup(void) {} void livesync_init(void) {} void livesync_deinit(void) {} void livesync_tell(struct ot_workstruct *ws) { (void)ws; } -- cgit v1.3