diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/ui.c | 3 | ||||
-rw-r--r-- | source4/torture/ui.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 0ab8d4e8da..176f911845 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -63,14 +63,17 @@ void torture_comment(struct torture_test *test, const char *comment, ...) _PRINT void torture_ok(struct torture_test *test) { test->context->ui_ops->test_result(test, TORTURE_OK); + test->context->success++; } void torture_fail(struct torture_test *test) { test->context->ui_ops->test_result(test, TORTURE_FAIL); + test->context->failed++; } void torture_skip(struct torture_test *test) { test->context->ui_ops->test_result(test, TORTURE_SKIP); + test->context->skipped++; } diff --git a/source4/torture/ui.h b/source4/torture/ui.h index df74f2cdcf..bf9ff80eb2 100644 --- a/source4/torture/ui.h +++ b/source4/torture/ui.h @@ -49,4 +49,9 @@ struct torture_context { const struct torture_ui_ops *ui_ops; void *ui_data; + + int skipped; + int todo; + int success; + int failed; }; |