]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: override _info's Fails: with --target
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Nov 2010 09:57:37 +0000 (20:27 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Nov 2010 09:57:37 +0000 (20:27 +1030)
I wanted to see what happened with tdb2's valgrind test (suppressed in the
_info file).

tools/ccanlint/ccanlint.c

index 8aa9f2894c4aa83e053692c560b0bb6e74a5a6ea..d09f68da19dc94932f4ba05d09a44d550e121608 100644 (file)
@@ -469,7 +469,10 @@ int main(int argc, char *argv[])
                }
        }
 
-       add_info_fails(m->info_file);
+       /* --target overrides _info excludes */
+       if (!target)
+               add_info_fails(m->info_file);
+
        while ((i = get_next_test(&normal_tests)) != NULL)
                run_test(i, summary, &score, &total_score, m);