]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: make sure we stop on failure of compulsory test.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Oct 2010 01:44:35 +0000 (12:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Oct 2010 01:44:35 +0000 (12:14 +1030)
tools/ccanlint/ccanlint.c

index 3b7dceb23ababae98ec458d29934a49009d79523..00d5363ec9997a3d0d46fa881201e71c17a56542 100644 (file)
@@ -185,7 +185,7 @@ static bool run_test(struct ccanlint *i,
                        d->dependent->skip_fail = true;
                }
        }
-       return good;
+       return !bad;
 }
 
 static void register_test(struct list_head *h, struct ccanlint *test, ...)