diff options
Diffstat (limited to 'tests/stubs.c')
| -rw-r--r-- | tests/stubs.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/stubs.c b/tests/stubs.c index 5999e2d..b8ab174 100644 --- a/tests/stubs.c +++ b/tests/stubs.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ |
| 3 | |||
| 4 | $id$ */ | ||
| 5 | 3 | ||
| 6 | /* Stubs for symbols the modules under test reference but never reach along | 4 | /* Stubs for symbols the modules under test reference but never reach along |
| 7 | the paths the tests exercise. If a test ever does reach one, the missing | 5 | the paths the tests exercise. If a test ever does reach one, the missing |
| @@ -28,16 +26,11 @@ long io_trywrite(long d, const char *buf, long len) { | |||
| 28 | /* 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 |
| 29 | 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 |
| 30 | 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. */ |
| 31 | void clean_init(void) {} | 29 | /* ot_clean.c is in the unit build for t_clean, so its thread control is the |
| 32 | void clean_deinit(void) {} | 30 | real thing and only the stats hook it calls is stubbed here. */ |
| 33 | int clean_single_torrent(ot_torrent *torrent) { | ||
| 34 | (void)torrent; | ||
| 35 | return 0; | ||
| 36 | } | ||
| 37 | void fullscrape_init(void) {} | 31 | void fullscrape_init(void) {} |
| 38 | void fullscrape_deinit(void) {} | 32 | void fullscrape_deinit(void) {} |
| 39 | void livesync_init(void) {} | 33 | void stats_cleanup(void) {} |
| 40 | void livesync_deinit(void) {} | ||
| 41 | void livesync_tell(struct ot_workstruct *ws) { (void)ws; } | 34 | void livesync_tell(struct ot_workstruct *ws) { (void)ws; } |
| 42 | void stats_init(void) {} | 35 | void stats_init(void) {} |
| 43 | void stats_deinit(void) {} | 36 | void stats_deinit(void) {} |
