Commit 1bfd1464 authored by Rusty Russell's avatar Rusty Russell

ccanlint: tests_compile_coverage needs GCC.

We only support gcc/gcov so far.
parent f22b5b12
......@@ -20,12 +20,16 @@
/* Note: we already test safe_mode in run_tests.c */
static const char *can_run_coverage(struct manifest *m)
{
#ifdef __GNUC__
unsigned int timeleft = default_timeout_ms;
char *output;
if (!run_command(m, &timeleft, &output, "gcov -h"))
return talloc_asprintf(m, "No gcov support: %s", output);
return NULL;
#else
return "No coverage support for this compiler";
#endif
}
static void cov_compile(const void *ctx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment