From 1ce4673c7c0151f69c2c35984633b6c9512ce97f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 27 Sep 2024 09:59:27 -0400 Subject: Only show a summary if a pool ran a job --- src/delivery_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/delivery_test.c b/src/delivery_test.c index cb8b434..959a99b 100644 --- a/src/delivery_test.c +++ b/src/delivery_test.c @@ -239,7 +239,10 @@ void delivery_tests_run(struct Delivery *ctx) { // All tasks were successful for (size_t p = 0; p < sizeof(pool) / sizeof(*pool); p++) { - mp_pool_show_summary(pool[p]); + if (pool[p]->num_used) { + // Only show pools that actually had jobs to run + mp_pool_show_summary(pool[p]); + } mp_pool_free(&pool[p]); } } -- cgit