X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_compile_coverage.c;h=4e35609913b7374d86847cf7fac01cc29bbc73f7;hp=ea46e79e1bc3d8df15cac0aeb2889ca526ff4e81;hb=9361a12f2fc1da0054faadbbdecaa341d0a6fc28;hpb=104125b2dd0a044fb3d68f9bc3b1b18c9f32ae2b diff --git a/tools/ccanlint/tests/tests_compile_coverage.c b/tools/ccanlint/tests/tests_compile_coverage.c index ea46e79e..4e356099 100644 --- a/tools/ccanlint/tests/tests_compile_coverage.c +++ b/tools/ccanlint/tests/tests_compile_coverage.c @@ -127,7 +127,10 @@ static void do_compile_coverage_tests(struct manifest *m, foreach_ptr(h, &m->run_tests, &m->api_tests) { list_for_each(h, i, list) { - cmdout = cov_compile(m, m, i, NULL, keep); + cmdout = cov_compile(m, m, i, + h == &m->api_tests + ? modobjs : NULL, + keep); if (cmdout) { score_file_error(score, i, 0, "Failed to compile test with coverage: %s",