else
this_score = 0;
- bad = (this_score == 0);
+ bad = (this_score == 0 && i->total_score != 0);
good = (this_score >= i->total_score);
if (verbose || (bad && !quiet)) {
d->dependent->skip_fail = true;
}
}
- return good;
+ return !bad;
}
static void register_test(struct list_head *h, struct ccanlint *test, ...)
struct btree *keys, *names;
#undef REGISTER_TEST
-#define REGISTER_TEST(name, ...) register_test(&normal_tests, &name, __VA_ARGS__)
+#define REGISTER_TEST(name, ...) register_test(&normal_tests, &name, __VA_ARGS__, NULL)
#include "generated-normal-tests"
#undef REGISTER_TEST
-#define REGISTER_TEST(name, ...) register_test(&compulsory_tests, &name, __VA_ARGS__)
+#define REGISTER_TEST(name, ...) register_test(&compulsory_tests, &name, __VA_ARGS__, NULL)
#include "generated-compulsory-tests"
/* Self-consistency check: make sure no two tests
if (optind < argc)
usage(argv[0]);
+ if (verbose >= 2)
+ compile_verbose = true;
if (verbose >= 3)
tools_verbose = true;