From 60513cb5508a8197f5219dc3d06c0331c99863a6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 28 Aug 2018 10:41:36 +0200 Subject: Add test function to all .c files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- recvfrom_timestamped.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'recvfrom_timestamped.c') diff --git a/recvfrom_timestamped.c b/recvfrom_timestamped.c index f5f8e53..49e8e3f 100644 --- a/recvfrom_timestamped.c +++ b/recvfrom_timestamped.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "libsimple.h" +#ifndef TEST ssize_t @@ -55,3 +56,15 @@ libsimple_recvfrom_timestamped(int fd, void *restrict buf, size_t n, int flags, return r; } + + +#else +#include "test.h" + +int +main(void) +{ + return 0; +} + +#endif -- cgit v1.2.3-70-g09d2