summaryrefslogtreecommitdiff
path: root/source4/torture/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/ui.c')
-rw-r--r--source4/torture/ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c
index 29832fc141..5544c6961e 100644
--- a/source4/torture/ui.c
+++ b/source4/torture/ui.c
@@ -83,6 +83,11 @@ void torture_result(struct torture_context *context,
va_start(ap, fmt);
+ if (context->last_reason) {
+ torture_warning(context, "%s", context->last_reason);
+ talloc_free(context->last_reason);
+ }
+
context->last_result = result;
context->last_reason = talloc_vasprintf(context, fmt, ap);
va_end(ap);