aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-27 09:59:27 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-27 09:59:27 -0400
commit1ce4673c7c0151f69c2c35984633b6c9512ce97f (patch)
tree66b6c33e64ae83a00dc3559e080f6c366ac170c6
parent40d1de9306d6de8a57d4398fef696ad8e1395c08 (diff)
downloadstasis-1ce4673c7c0151f69c2c35984633b6c9512ce97f.tar.gz
Only show a summary if a pool ran a job
-rw-r--r--src/delivery_test.c5
1 files changed, 4 insertions, 1 deletions
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]);
}
}