diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-27 15:06:46 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-27 15:06:46 +1030 |
commit | 1bfd1464af76e16a34af087c663cf42c9b915fee (patch) | |
tree | 40b709bd4f871df792f19d98263fe88ab060e2ec | |
parent | f22b5b1231f1e34c04cc5242feb152693f64b46e (diff) |
ccanlint: tests_compile_coverage needs GCC.
We only support gcc/gcov so far.
-rw-r--r-- | tools/ccanlint/tests/tests_compile_coverage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ccanlint/tests/tests_compile_coverage.c b/tools/ccanlint/tests/tests_compile_coverage.c index 0d3e7e1d..19ba1ef2 100644 --- a/tools/ccanlint/tests/tests_compile_coverage.c +++ b/tools/ccanlint/tests/tests_compile_coverage.c @@ -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, |