X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Frun_tests.c;h=52c5fb1041877f2e8daa4613b50bf9a14212c512;hp=581654a176b7f8a1f6403b0fdc000d0368e22c39;hb=1d893107b3481639bf1fc6f96972457ac6e828f7;hpb=357700fd05c2cf25563a0058fd68f2ffea827e74 diff --git a/tools/ccanlint/compulsory_tests/run_tests.c b/tools/ccanlint/compulsory_tests/run_tests.c index 581654a1..52c5fb10 100644 --- a/tools/ccanlint/compulsory_tests/run_tests.c +++ b/tools/ccanlint/compulsory_tests/run_tests.c @@ -27,7 +27,7 @@ struct run_tests_result { const char *output; }; -static void *do_run_tests(struct manifest *m) +static void *do_run_tests(struct manifest *m, unsigned int *timeleft) { struct list_head *list = talloc(m, struct list_head); struct run_tests_result *res; @@ -47,8 +47,7 @@ static void *do_run_tests(struct manifest *m) list_for_each(&m->run_tests, i, list) { run_tests.total_score++; - /* FIXME: timeout here */ - cmdout = run_command(m, i->compiled); + cmdout = run_command(m, timeleft, i->compiled); if (cmdout) { res = talloc(list, struct run_tests_result); res->file = i; @@ -59,8 +58,7 @@ static void *do_run_tests(struct manifest *m) list_for_each(&m->api_tests, i, list) { run_tests.total_score++; - /* FIXME: timeout here */ - cmdout = run_command(m, i->compiled); + cmdout = run_command(m, timeleft, i->compiled); if (cmdout) { res = talloc(list, struct run_tests_result); res->file = i;