]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/depends_accurate.c
ccanlint: tests_compile_coverage needs GCC.
[ccan] / tools / ccanlint / tests / depends_accurate.c
index 34db4f84d0dd75b9d402f7ead9bc798cdf88268b..d3670a62d58ae281ba79d92b0d088c921932932e 100644 (file)
@@ -32,11 +32,13 @@ static bool has_dep(struct manifest *m, const char *depname)
 }
 
 static void check_depends_accurate(struct manifest *m,
-                                  bool keep,
                                   unsigned int *timeleft, struct score *score)
 {
        struct list_head *list;
 
+       /* FIXME: This isn't reliable enough with #ifdefs, so we don't fail. */
+       score->pass = true;
+
        foreach_ptr(list, &m->c_files, &m->h_files,
                    &m->run_tests, &m->api_tests,
                    &m->compile_ok_tests, &m->compile_fail_tests,
@@ -55,15 +57,14 @@ static void check_depends_accurate(struct manifest *m,
                                        continue;
                                if (has_dep(m, mod))
                                        continue;
-                               score->error = "Includes a ccan module"
-                                       " not listed in _info";
-                               score_file_error(score, f, i+1, lines[i]);
+                               score_file_error(score, f, i+1,
+                                                "%s not listed in _info",
+                                                mod);
                        }
                }
        }
 
        if (!score->error) {
-               score->pass = true;
                score->score = score->total;
        }
 }