X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fdepends_exist.c;h=3d50a063a243c857bd79179c21dae0eba118955d;hb=932d65dd6537250e617516749f03a00fea3b34f6;hp=76750fb1236f7bab79e7ff2a73412aa74185d919;hpb=453fdc02ce54ff965f9971a3bfd0e1a79b6c98f9;p=ccan diff --git a/tools/ccanlint/tests/depends_exist.c b/tools/ccanlint/tests/depends_exist.c index 76750fb1..3d50a063 100644 --- a/tools/ccanlint/tests/depends_exist.c +++ b/tools/ccanlint/tests/depends_exist.c @@ -19,7 +19,7 @@ static bool have_dep(struct manifest *m, const char *dep) struct manifest *i; list_for_each(&m->deps, i, list) - if (streq(i->basename, dep + strlen("ccan/"))) + if (streq(i->modname, dep + strlen("ccan/"))) return true; return false; @@ -80,7 +80,7 @@ static void check_test_depends_exist(struct manifest *m, bool needs_tap; /* We may need libtap for testing, unless we're "tap" */ - if (streq(m->basename, "tap")) { + if (streq(m->modname, "tap")) { needs_tap = false; } else if (list_empty(&m->run_tests) && list_empty(&m->api_tests)) { needs_tap = false;