X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_compile_coverage.c;h=c8bc35d93b1ab1fe37320b18fb79f2bb7023ef0b;hp=89308fe80ae9ae4a26ba97979bb11f7bf2725785;hb=bcb956d9afb054a36c4f481900cdbc6587c4a2bf;hpb=0fd6bb104ac424b56326bd37de8b5057eb68243f diff --git a/tools/ccanlint/tests/tests_compile_coverage.c b/tools/ccanlint/tests/tests_compile_coverage.c index 89308fe8..c8bc35d9 100644 --- a/tools/ccanlint/tests/tests_compile_coverage.c +++ b/tools/ccanlint/tests/tests_compile_coverage.c @@ -19,16 +19,7 @@ /* 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 tal_fmt(m, "No gcov support: %s", output); - return NULL; -#else - return "No coverage support for this compiler"; -#endif + return gcov_unavailable(m); } static char *cflags_list(const struct manifest *m)