From a2a6f4b93526981c2aa7062c54ddd7ecab10acbd Mon Sep 17 00:00:00 2001 From: Martin Mitas Date: Thu, 28 Dec 2023 02:50:54 +0100 Subject: [PATCH] Fix report when --tap and --skip are used together. --- include/acutest.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/acutest.h b/include/acutest.h index a4a9fb1..9cd5162 100644 --- a/include/acutest.h +++ b/include/acutest.h @@ -1788,8 +1788,11 @@ main(int argc, char** argv) /* TAP harness should provide some summary. */ acutest_no_summary_ = 1; - if(!acutest_worker_) - printf("1..%d\n", (int) acutest_count_); + if(!acutest_worker_) { + printf("1..%d\n", (acutest_skip_mode_) + ? (int) (acutest_list_size_ - acutest_count_) + : (int) acutest_count_); + } } index = acutest_worker_index_;