diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-25 18:45:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:14 -0500 |
commit | 13ea7bb7538050b21abcab9c2db7a2f85e2fdd02 (patch) | |
tree | 1f1543cc67f5eb0f0ed5ac4568af24bce60920ae /source4/torture | |
parent | e70eae2b4c987eb413f085c7b3250a152769670e (diff) | |
download | samba-13ea7bb7538050b21abcab9c2db7a2f85e2fdd02.tar.gz samba-13ea7bb7538050b21abcab9c2db7a2f85e2fdd02.tar.bz2 samba-13ea7bb7538050b21abcab9c2db7a2f85e2fdd02.zip |
r14723: Keep statistics
(This used to be commit 9d6eefad3a45aba52247d4364c9ef5a538f0abd5)
Diffstat (limited to 'source4/torture')
-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; }; |