Commit 868412b7 authored by Rusty Russell's avatar Rusty Russell

Simple compile fixes for tests.

parent be74c29b
/* This is test for grab_file() function
*/
#include "grab_file/grab_file.h"
#include <stdlib.h>
#include <stdio.h>
#include <err.h>
#include <sys/stat.h>
#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[])
......
......@@ -3,13 +3,18 @@
#include <stdio.h>
#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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment