aboutsummaryrefslogtreecommitdiffstats
path: root/strchrnul.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-18 23:40:11 +0200
committerMattias Andrée <maandree@kth.se>2018-08-18 23:40:11 +0200
commit3e746c51b3adcf97e4d11be30bfd91c8aaf2c2ba (patch)
treea00b8ec51cfaf110d8bf36daa91827c95dc107e7 /strchrnul.c
parentImprove makefile (diff)
downloadlibsimple-3e746c51b3adcf97e4d11be30bfd91c8aaf2c2ba.tar.gz
libsimple-3e746c51b3adcf97e4d11be30bfd91c8aaf2c2ba.tar.bz2
libsimple-3e746c51b3adcf97e4d11be30bfd91c8aaf2c2ba.tar.xz
Fix and run tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--strchrnul.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/strchrnul.c b/strchrnul.c
index 893ff34..2dccb7a 100644
--- a/strchrnul.c
+++ b/strchrnul.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
+#ifndef TEST
char *
@@ -11,8 +12,8 @@ libsimple_strchrnul(const char *s_, int c)
}
-#ifdef TEST
-#include <assert.h>
+#else
+#include "test.h"
int
main(void)