- struct manifest *i;
-
- list_for_each(&m->deps, i, list) {
- char *errstr = build_submodule(i, cflags, COMPILE_NORMAL);
-
- if (errstr) {
- score->error = talloc_asprintf(score,
- "Dependency %s"
- " did not build:\n%s",
- i->basename, errstr);
- return;
+ struct list_head *list;
+
+ foreach_ptr(list, &m->deps, &m->test_deps) {
+ struct manifest *i;
+ list_for_each(list, i, list) {
+ char *errstr;
+
+ errstr = build_submodule(i, cflags, COMPILE_NORMAL);
+
+ if (errstr) {
+ score->error = talloc_asprintf(score,
+ "Dependency %s"
+ " did not"
+ " build:\n%s",
+ i->basename,
+ errstr);
+ return;
+ }