]> git.ipfire.org Git - collecty.git/commit
sources: Add some tests
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Oct 2025 14:58:18 +0000 (14:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Oct 2025 15:08:15 +0000 (15:08 +0000)
commit57233aca863d7e9fe6d06b0cc95df6ecdacfe823
treec9b7d41d19229918960280672e7ec0e4aa979aeb
parent4321be8c609f6e4eb8bdfa6dd93ac4bf157361a7
sources: Add some tests

Oone constantly returns an error, the other one returns an error with a
probability of 50%. They are to test the internal error handling.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/daemon/sources.c
src/daemon/sources/test-error.c [new file with mode: 0644]
src/daemon/sources/test-error.h [new file with mode: 0644]
src/daemon/sources/test-flapping.c [new file with mode: 0644]
src/daemon/sources/test-flapping.h [new file with mode: 0644]