Commit 0018a891 authored by Rusty Russell's avatar Rusty Russell

Fix make check to run all tests.

Fix str test.
parent b7764474
......@@ -18,6 +18,7 @@ JUNKBALLS=$(JUNKDIRS:%=$(WEBDIR)/%.tar.bz2)
include Makefile-ccan
check: $(ALL_DIRS:%=test-%)
echo $(ALL_DIRS)
distclean: clean
rm -f $(ALL_DEPENDS)
......@@ -82,6 +83,11 @@ test-ccan/%: tools/run_tests libccan.a(%.o)
@echo Testing $*...
@if tools/run_tests $(V) ccan/$* | grep ^'not ok'; then exit 1; else exit 0; fi
# Some don't have object files.
test-ccan/%:: tools/run_tests
@echo Testing $*...
@if tools/run_tests $(V) ccan/$* | grep ^'not ok'; then exit 1; else exit 0; fi
ccanlint: tools/ccanlint/ccanlint
clean: tools-clean
......
#include "string/string.h"
#include "str/str.h"
#include <stdlib.h>
#include <stdio.h>
#include "string/string.c"
#include "tap/tap.h"
/* FIXME: ccanize */
......@@ -24,8 +23,6 @@ static char *strdup_rev(const char *s)
int main(int argc, char *argv[])
{
unsigned int i, j, n;
char **split, *str;
void *ctx;
char *strings[NUM_SUBSTRINGS * NUM_SUBSTRINGS];
n = 0;
......
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