X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_helpers_compile.c;h=67ca8d8ae332f192f568272909befb7ac2281aaa;hp=0ad5a7e67cc7847fb9bbc9c568ef403b7752eb7d;hb=37e247dbcb57f4b2effd44b37b96dc679ee525d0;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8 diff --git a/tools/ccanlint/tests/tests_helpers_compile.c b/tools/ccanlint/tests/tests_helpers_compile.c index 0ad5a7e6..67ca8d8a 100644 --- a/tools/ccanlint/tests/tests_helpers_compile.c +++ b/tools/ccanlint/tests/tests_helpers_compile.c @@ -49,12 +49,12 @@ static void do_compile_test_helpers(struct manifest *m, if (!compile(m, keep, i, &cmdout)) { errors = true; - score->error = "Failed to compile helper C files"; - score_file_error(score, i, 0, cmdout); + score_file_error(score, i, 0, "Compile failed:\n%s", + cmdout); } else if (!streq(cmdout, "")) { warnings = true; - score->error = "Helper C files gave warnings"; - score_file_error(score, i, 0, cmdout); + score_file_error(score, i, 0, + "Compile gave warnings:\n%s", cmdout); } }