X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fconfigurator%2Fconfigurator.c;h=ffa188d77bb539eba3b647c6a8dbf9232a8c9191;hp=426a2ad7862f04b1997f9d61f6c3af4658581607;hb=2cae94deeef69742245557d934749235e7508bea;hpb=e744ae4399c8dd37a76fa463e982eb8306b1351e diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index 426a2ad7..ffa188d7 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -267,9 +267,10 @@ static bool run_test(const char *cmd, struct test *test) if (system("cat " INPUT_FILE) == -1); output = run(cmd, &status); - if (status != 0) { + if (status != 0 || strstr(output, "warning")) { if (verbose) - printf("Compile fail for %s, status %i: %s\n", + printf("Compile %s for %s, status %i: %s\n", + status ? "fail" : "warning", test->name, status, output); if (test->style == EXECUTE) errx(1, "Test for %s did not compile:\n%s",