From 868412b72b7c83d1fec52d0f71355bc15de2600e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 7 Dec 2008 20:16:52 +1030 Subject: [PATCH] Simple compile fixes for tests. --- ccan/grab_file/test/run-grab.c | 7 ++++--- ccan/str_talloc/test/run.c | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ccan/grab_file/test/run-grab.c b/ccan/grab_file/test/run-grab.c index 2b36a0fb..7df663c9 100644 --- a/ccan/grab_file/test/run-grab.c +++ b/ccan/grab_file/test/run-grab.c @@ -1,13 +1,14 @@ /* This is test for grab_file() function */ - +#include "grab_file/grab_file.h" #include #include #include #include -#include "string/string.h" -#include "string/string.c" +#include "grab_file/grab_file.c" #include "tap/tap.h" +#include "str_talloc/str_talloc.h" +#include "str/str.h" int main(int argc, char *argv[]) diff --git a/ccan/str_talloc/test/run.c b/ccan/str_talloc/test/run.c index 6da48bd0..2e45aafe 100644 --- a/ccan/str_talloc/test/run.c +++ b/ccan/str_talloc/test/run.c @@ -3,13 +3,18 @@ #include #include "str_talloc/str_talloc.c" #include "tap/tap.h" +#include "str/str.h" /* FIXME: ccanize */ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) +static char *substrings[] = { "far", "bar", "baz", "b", "ba", "z", "ar", NULL }; + int main(int argc, char *argv[]) { - unsigned int i, j, n; + unsigned int n; + char **split, *str; + void *ctx; plan_tests(19); split = strsplit(NULL, "hello world", " ", &n); -- 2.39.2