]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.c
ccanlint: make sure we stop on failure of compulsory test.
[ccan] / 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;
                }
        }
                        d->dependent->skip_fail = true;
                }
        }
-       return good;
+       return !bad;
 }
 
 static void register_test(struct list_head *h, struct ccanlint *test, ...)
 }
 
 static void register_test(struct list_head *h, struct ccanlint *test, ...)