X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_exist.c;h=69e01df6e909ee64c0501384dcc25291efe7afa3;hp=f339b6b9df319b08c48f5c6109eeb6d7f8a17e40;hb=49a1a4366fdcea418582a97cb0bf700373b89868;hpb=dc8042b42500f79f613b1197df6cdf739615a89f diff --git a/tools/ccanlint/tests/tests_exist.c b/tools/ccanlint/tests/tests_exist.c index f339b6b9..69e01df6 100644 --- a/tools/ccanlint/tests/tests_exist.c +++ b/tools/ccanlint/tests/tests_exist.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -106,7 +107,7 @@ static void check_tests_exist(struct manifest *m, unsigned int *timeleft, struct score *score) { struct stat st; - char *test_dir = tal_fmt(m, "%s/test", m->dir); + char *test_dir = path_join(m, m->dir, "test"); if (lstat(test_dir, &st) != 0) { score->error = tal_strdup(score, "No test directory");