From 3e746c51b3adcf97e4d11be30bfd91c8aaf2c2ba Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 18 Aug 2018 23:40:11 +0200 Subject: Fix and run tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- memmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'memmem.c') diff --git a/memmem.c b/memmem.c index 0046e19..5affa16 100644 --- a/memmem.c +++ b/memmem.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "libsimple.h" +#ifndef TEST void * @@ -23,8 +24,8 @@ libsimple_memmem(const void *hay_, size_t hayn, const void *sub_, size_t subn) } -#ifdef TEST -#include +#else +#include "test.h" int main(void) -- cgit v1.2.3-70-g09d2