X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Frun_tests.c;h=16a07aee1cca555647bd2e0731ecee11f31c5eb2;hp=763b54a3e66924e38a8611680992cccec6101c58;hb=b7c94538066fbdfe85c45316102e06278bb61e6e;hpb=729fc5b931c8eb26f192399d8aa7064f9af058df;ds=inline diff --git a/tools/ccanlint/compulsory_tests/run_tests.c b/tools/ccanlint/compulsory_tests/run_tests.c index 763b54a3..16a07aee 100644 --- a/tools/ccanlint/compulsory_tests/run_tests.c +++ b/tools/ccanlint/compulsory_tests/run_tests.c @@ -104,6 +104,9 @@ static const char *describe_run_tests(struct manifest *m, return descrip; } +/* Gcc's warn_unused_result is fascist bullshit. */ +#define doesnt_matter() + static void run_under_debugger(struct manifest *m, void *check_result) { char *command; @@ -116,7 +119,8 @@ static void run_under_debugger(struct manifest *m, void *check_result) first = list_top(list, struct run_tests_result, list); command = talloc_asprintf(m, "gdb -ex 'break tap.c:136' -ex 'run' %s", first->file->compiled); - system(command); + if (system(command)) + doesnt_matter(); } struct ccanlint run_tests = {