Commit 4ded146c authored by Rusty Russell's avatar Rusty Russell

ccanlint: handle -x correctly with multiple modules.

After the first module we were resetting even the excluded tests, which caused
a segfault as they weren't initialized.
parent 08eb7e5a
......@@ -689,7 +689,9 @@ static bool run_tests(struct dgraph_node *all,
static bool add_to_all(const char *member, struct ccanlint *c,
struct dgraph_node *all)
{
dgraph_add_edge(&c->node, all);
/* If we're excluded on cmdline, don't add. */
if (!c->skip)
dgraph_add_edge(&c->node, all);
return true;
}
......
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