Fixed dummy test still being registered
This commit is contained in:
parent
4148d3d5d4
commit
1fbcecc520
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ struct criterion_test_set *criterion_init(void) {
|
|||
struct criterion_ordered_set *suites = new_ordered_set(cmp_suite, dtor_suite_set);
|
||||
|
||||
FOREACH_SUITE_SEC(s) {
|
||||
if (!*s)
|
||||
if (!*s || !*(*s)->name)
|
||||
continue;
|
||||
|
||||
struct criterion_suite_set css = {
|
||||
|
@ -148,7 +148,7 @@ struct criterion_test_set *criterion_init(void) {
|
|||
if (!*test)
|
||||
continue;
|
||||
|
||||
if (!(*test)->category)
|
||||
if (!*(*test)->category || !*(*test)->name)
|
||||
continue;
|
||||
|
||||
criterion_register_test(set, *test);
|
||||
|
|
Loading…
Add table
Reference in a new issue