Fix TAP output when skipping multiple tests
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/9900140b Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/9900140b Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/9900140b Branch: refs/heads/master Commit: 9900140b3e05a41560f4936bbe40a9888917a512 Parents: 7e065b2 Author: Nick Wellnhofer <[email protected]> Authored: Mon Mar 30 13:46:36 2015 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Mon Mar 30 13:46:36 2015 +0200 ---------------------------------------------------------------------- runtime/core/Clownfish/TestHarness/TestBatchRunner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9900140b/runtime/core/Clownfish/TestHarness/TestBatchRunner.c ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/TestHarness/TestBatchRunner.c b/runtime/core/Clownfish/TestHarness/TestBatchRunner.c index aacffa4..7183226 100644 --- a/runtime/core/Clownfish/TestHarness/TestBatchRunner.c +++ b/runtime/core/Clownfish/TestHarness/TestBatchRunner.c @@ -278,9 +278,9 @@ TestBatchRunner_VFail_IMP(TestBatchRunner *self, const char *pattern, void TestBatchRunner_VSkip_IMP(TestBatchRunner *self, uint32_t num, const char *pattern, va_list args) { - self->test_num += num; - TestFormatter_VTest_Skip(self->formatter, self->test_num, num, pattern, + TestFormatter_VTest_Skip(self->formatter, self->test_num + 1, num, pattern, args); + self->test_num += num; self->num_skipped += num; }
