diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-06-12 19:49:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:03 -0500 |
commit | b78ebdbfc037a7ffe400edbd08bce7f03968405a (patch) | |
tree | 7fe93402fda60fb880dd6ff7af159e32b0f3e1ba /source4/torture/ui.c | |
parent | 978dee520e8ceb43c2e63383197a506913d7e8b4 (diff) | |
download | samba-b78ebdbfc037a7ffe400edbd08bce7f03968405a.tar.gz samba-b78ebdbfc037a7ffe400edbd08bce7f03968405a.tar.bz2 samba-b78ebdbfc037a7ffe400edbd08bce7f03968405a.zip |
r16165: Add some more helper utilities
(This used to be commit 584cd50d2bbace27220427ab23d032b2aab7f047)
Diffstat (limited to 'source4/torture/ui.c')
-rw-r--r-- | source4/torture/ui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 35ff3cee7d..9c25991d20 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -79,6 +79,11 @@ void torture_fail(struct torture_test *test, const char *fmt, ...) _PRINTF_ATTRI test->context->failed++; } +BOOL torture_result(struct torture_context *torture) +{ + return (torture->failed == 0); +} + void torture_skip(struct torture_test *test, const char *fmt, ...) _PRINTF_ATTRIBUTE(2,3) { va_list ap; |