/* This software was written by Dirk Engling It is considered beerware. Prost. Skol. Cheers or whatever. $id$ */ /* Stubs for symbols the modules under test reference but never reach along the paths the tests exercise. If a test ever does reach one, the missing behaviour should be supplied here rather than the test weakened. */ /* Opentracker */ #include "ot_stats.h" #include "trackerlogic.h" /* ot_accesslist.c is built with WANT_ACCESSLIST_BLACK so that the hash parser is reachable. These two belong to accesslist_readfile and the reload worker, neither of which any test drives. */ _Atomic int g_opentracker_running; /* ot_mutex.c wakes the main loop through the self pipe when a result is ready. The queue tests never get that far. */ int g_self_pipe[2] = {-1, -1}; long io_trywrite(long d, const char *buf, long len) { (void)d; (void)buf; return 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; } void fullscrape_init(void) {} void fullscrape_deinit(void) {} void livesync_init(void) {} void livesync_deinit(void) {} void livesync_tell(struct ot_workstruct *ws) { (void)ws; } void stats_init(void) {} void stats_deinit(void) {} void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FLAG proto, uintptr_t event_data) { (void)ws; (void)event; (void)proto; (void)event_data; } void stats_counters_register(struct ot_workstruct *ws) { (void)ws; } void stats_counters_retire(struct ot_workstruct *ws) { (void)ws; } const char *g_stats_path; ssize_t g_stats_path_len; uint32_t g_tracker_id;