diff options
Diffstat (limited to 'tests/stubs.c')
| -rw-r--r-- | tests/stubs.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/stubs.c b/tests/stubs.c new file mode 100644 index 0000000..ce93071 --- /dev/null +++ b/tests/stubs.c | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | ||
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | ||
| 3 | |||
| 4 | $id$ */ | ||
| 5 | |||
| 6 | /* 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 | ||
| 8 | behaviour should be supplied here rather than the test weakened. */ | ||
| 9 | |||
| 10 | /* Opentracker */ | ||
| 11 | #include "trackerlogic.h" | ||
| 12 | |||
| 13 | /* ot_vector.c calls this from vector_clean_list, which no test drives yet. */ | ||
| 14 | void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } | ||
| 15 | |||
| 16 | /* ot_accesslist.c is built with WANT_ACCESSLIST_BLACK so that the hash parser | ||
| 17 | is reachable. These two belong to accesslist_readfile and the reload worker, | ||
| 18 | neither of which any test drives. */ | ||
| 19 | time_t g_now_seconds; | ||
| 20 | volatile int g_opentracker_running; | ||
