Skip to content

Commit

Permalink
Fix report when --tap and --skip are used together.
Browse files Browse the repository at this point in the history
  • Loading branch information
mity committed Dec 28, 2023
1 parent 2ee18c1 commit a2a6f4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/acutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down

0 comments on commit a2a6f4b

Please sign in to comment.