- list = talloc_asprintf_append(list, " %s",
- subm->compiled[ctype]);
+ tal_append_fmt(&list, " %s", subm->compiled[ctype]);
+ }
+
+ /* Other ccan modules (test depends). */
+ list_for_each(&m->test_deps, subm, list) {
+ if (subm->compiled[ctype])
+ tal_append_fmt(&list, " %s", subm->compiled[ctype]);