From 6cb87a77434f7577e793256c4072e62e1d207650 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 6 Oct 2010 09:41:11 +1030 Subject: [PATCH 1/1] ccanlint: fix -k has_examples --- tools/ccanlint/tests/has_examples.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ccanlint/tests/has_examples.c b/tools/ccanlint/tests/has_examples.c index 12035e62..6c8fff4d 100644 --- a/tools/ccanlint/tests/has_examples.c +++ b/tools/ccanlint/tests/has_examples.c @@ -25,7 +25,9 @@ static char *add_example(struct manifest *m, struct ccan_file *source, struct ccan_file *f; name = maybe_temp_file(m, ".c", keep, - talloc_asprintf(m, "example-%s-%s", + talloc_asprintf(m, "%s/example-%s-%s", + talloc_dirname(m, + source->fullname), source->name, example->function)); f = new_ccan_file(m, talloc_dirname(m, name), talloc_basename(m, name)); -- 2.39.2