5 const char *gcov; /* = NULL */
7 bool run_gcov(const void *ctx, unsigned int *time_ms, char **output,
10 const char *cmd = gcov;
25 args = tal_vfmt(ctx, fmt, ap);
26 rc = run_command(ctx, time_ms, output, "%s %s", cmd, args);
31 const char *gcov_unavailable(void *ctx)
33 const char *err = NULL;
36 * If the user has specified a path, assume they know what
43 unsigned int timeleft = default_timeout_ms;
46 if (!run_gcov(ctx, &timeleft, &output, "-h")) {
47 err = tal_fmt(ctx, "No gcov support: %s", output);
51 err = "No coverage support for this compiler";