summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-15 21:42:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:04 -0500
commita719444f68c7448f53ce61dc9f02e552a98fedcf (patch)
tree0bbafd60a035c7da413c53ee6df7eb84272fbe33 /source4/torture
parentd08f8ab4336583150ca072250bd71076a5c1e366 (diff)
downloadsamba-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/torture')
-rw-r--r--source4/torture/ui.c2
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;
}