]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19298: make sure torture_fail() gives a useful message
authorAndrew Tridgell <tridge@samba.org>
Sun, 15 Oct 2006 21:42:45 +0000 (21:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:04 +0000 (14:21 -0500)
Jelmer, is there a better approach for this?
(This used to be commit 67e2cf921709e0833362cb3b1bd5558f3c359033)

source4/torture/ui.c

index 50bb2482d726de4bb79654425b25f8bce0cf1e02..4abc3339d443877de37dbab3a7acfe58f96e414d 100644 (file)
@@ -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;
 }