]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/objects_build_with_stringchecks.c
ccanlint: exit with non-zero exit status if a test fails.
[ccan] / tools / ccanlint / tests / objects_build_with_stringchecks.c
index 32fa22ea54bff1e084006c75bbbdc5fd1597089d..5c57155d1aaa6a45e42af55c80681ac3d3e7ab04 100644 (file)
@@ -128,9 +128,11 @@ static void build_objects_with_stringchecks(struct manifest *m,
                }
        }
 
+       /* We don't fail ccanlint for this. */
+       score->pass = true;
+
        score->total = 1;
        if (!errors) {
-               score->pass = true;
                score->score = !warnings;
        }
 }