summaryrefslogtreecommitdiff
path: root/tests/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stubs.c')
-rw-r--r--tests/stubs.c15
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. */
31void clean_init(void) {} 29/* ot_clean.c is in the unit build for t_clean, so its thread control is the
32void clean_deinit(void) {} 30 real thing and only the stats hook it calls is stubbed here. */
33int clean_single_torrent(ot_torrent *torrent) {
34 (void)torrent;
35 return 0;
36}
37void fullscrape_init(void) {} 31void fullscrape_init(void) {}
38void fullscrape_deinit(void) {} 32void fullscrape_deinit(void) {}
39void livesync_init(void) {} 33void stats_cleanup(void) {}
40void livesync_deinit(void) {}
41void livesync_tell(struct ot_workstruct *ws) { (void)ws; } 34void livesync_tell(struct ot_workstruct *ws) { (void)ws; }
42void stats_init(void) {} 35void stats_init(void) {}
43void stats_deinit(void) {} 36void stats_deinit(void) {}