diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-05 08:54:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:45 -0500 |
commit | bf0ee695db9c96a28dde6e11cedba3590f8cd11c (patch) | |
tree | f9e30aaac2ac8dc9932df477cb173f0ef937a2fc /source4/torture | |
parent | 54bc4556b93671202db93ef5097c006d0aa1880e (diff) | |
download | samba-bf0ee695db9c96a28dde6e11cedba3590f8cd11c.tar.gz samba-bf0ee695db9c96a28dde6e11cedba3590f8cd11c.tar.bz2 samba-bf0ee695db9c96a28dde6e11cedba3590f8cd11c.zip |
r25514: don't blindly overwrite the result last_reason,
print the old one as warning...
metze
(This used to be commit 9dd66317bdc50bb39ca2c2b14635647b361d5867)
Diffstat (limited to 'source4/torture')
-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 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); |