]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: fix --test-dep-graph
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 16 Nov 2011 07:44:56 +0000 (18:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 16 Nov 2011 07:44:56 +0000 (18:14 +1030)
Broken by 758ab1f402b4 "ccanlint: drop -d, interpret any arguments as
directories, and allow multiple."

tools/ccanlint/ccanlint.c

index 74497d5c3d5d53f117ae73d4b74e30bf12d55b35..4092d104160145fd6e0657187034a48da3ad845c 100644 (file)
@@ -403,6 +403,7 @@ static void test_dgraph_edges(struct list_head *tests)
 
 static char *test_dependency_graph(void *arg)
 {
 
 static char *test_dependency_graph(void *arg)
 {
+       init_tests();
        puts("digraph G {");
 
        test_dgraph_vertices(&compulsory_tests, ", style=filled, fillcolor=yellow");
        puts("digraph G {");
 
        test_dgraph_vertices(&compulsory_tests, ", style=filled, fillcolor=yellow");