diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 13:52:17 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 13:52:17 +0100 |
| commit | 47293a4f116e04a88b0797bafad0c98b4393b744 (patch) | |
| tree | b71d19aa8637382a6d3b453614a6a52a2c1b3245 /tests/stubs.c | |
| parent | 9a3a01643fc78bf544a1e6f5ca5c7529e2026b25 (diff) | |
Clamp every elapsed time span at zero, using a set of helper functions
Diffstat (limited to 'tests/stubs.c')
| -rw-r--r-- | tests/stubs.c | 9 |
1 files changed, 3 insertions, 6 deletions
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) { | |||
| 26 | /* trackerlogic.c is under test, and starting it up starts every module it | 26 | /* trackerlogic.c is under test, and starting it up starts every module it |
| 27 | leans on. None of them is driven by these tests, so they are answered here | 27 | leans on. None of them is driven by these tests, so they are answered here |
| 28 | rather than linked in and left to run threads of their own. */ | 28 | rather than linked in and left to run threads of their own. */ |
| 29 | void clean_init(void) {} | 29 | /* ot_clean.c is in the unit build for t_clean, so its thread control is the |
| 30 | void clean_deinit(void) {} | 30 | real thing and only the stats hook it calls is stubbed here. */ |
| 31 | int clean_single_torrent(ot_torrent *torrent) { | ||
| 32 | (void)torrent; | ||
| 33 | return 0; | ||
| 34 | } | ||
| 35 | void fullscrape_init(void) {} | 31 | void fullscrape_init(void) {} |
| 36 | void fullscrape_deinit(void) {} | 32 | void fullscrape_deinit(void) {} |
| 33 | void stats_cleanup(void) {} | ||
| 37 | void livesync_init(void) {} | 34 | void livesync_init(void) {} |
| 38 | void livesync_deinit(void) {} | 35 | void livesync_deinit(void) {} |
| 39 | void livesync_tell(struct ot_workstruct *ws) { (void)ws; } | 36 | void livesync_tell(struct ot_workstruct *ws) { (void)ws; } |
