diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-10-15 21:42:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:04 -0500 |
commit | a719444f68c7448f53ce61dc9f02e552a98fedcf (patch) | |
tree | 0bbafd60a035c7da413c53ee6df7eb84272fbe33 /source4 | |
parent | d08f8ab4336583150ca072250bd71076a5c1e366 (diff) | |
download | samba-a719444f68c7448f53ce61dc9f02e552a98fedcf.tar.gz samba-a719444f68c7448f53ce61dc9f02e552a98fedcf.tar.bz2 samba-a719444f68c7448f53ce61dc9f02e552a98fedcf.zip |
r19298: make sure torture_fail() gives a useful message
Jelmer, is there a better approach for this?
(This used to be commit 67e2cf921709e0833362cb3b1bd5558f3c359033)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 50bb2482d7..4abc3339d4 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -45,6 +45,8 @@ void torture_fail(struct torture_context *context, const char *fmt, ...) va_start(ap, fmt); context->last_reason = talloc_vasprintf(context, fmt, ap); + /* make sure the reason for the failure is displayed */ + context->ui_ops->comment(context, context->last_reason); va_end(ap); context->last_result = TORTURE_FAIL; } |