From: Masatake YAMATO Date: Thu, 22 Sep 2022 18:42:44 +0000 (+0900) Subject: tests: (mkfds) add a method for printing factory specific data to struct factory X-Git-Tag: v2.39-rc1~505^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=271bc510c2efe84b365273b8f730aeb3aa258bed;p=thirdparty%2Futil-linux.git tests: (mkfds) add a method for printing factory specific data to struct factory Signed-off-by: Masatake YAMATO --- diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c index a16bea9e42..b32584a8a5 100644 --- a/tests/helpers/test_mkfds.c +++ b/tests/helpers/test_mkfds.c @@ -229,6 +229,7 @@ struct factory { int EX_N; /* fds made optionally */ void *(*make)(const struct factory *, struct fdesc[], int, char **); void (*free)(const struct factory *, void *); + void (*report)(const struct factory *, void *, FILE *); const struct parameter * params; }; @@ -1108,6 +1109,8 @@ int main(int argc, char **argv) if (!quiet) { printf("%d", getpid()); putchar('\n'); + if (factory->report) + factory->report(factory, data, stdout); fflush(stdout); }