]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/info_ported.c
ccanlint: make _info ported an empty string on success.
[ccan] / tools / ccanlint / tests / info_ported.c
index f58f2f3498e3665125568f81a33b319017d2f1f7..4436008925e05ca509d622d200ff949d281c3c54 100644 (file)
 
 static const char *can_build(struct manifest *m)
 {
+       char *msg;
+
        /* FIXME: In safe mode, we'd need complex guesstiparsing. */
        if (safe_mode)
                return NULL;
 
-       if (get_ported(m, m->dir, true, get_or_compile_info))
+       msg = get_ported(m, m->dir, true, get_or_compile_info);
+       if (!msg)
                return NULL;
-       return "'_info ported' says not supported";
+       return tal_fmt(m, "'_info ported' says '%s'", msg);
 }
 
 static void check_info_ported(struct manifest *m,