summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-05-03 13:42:57 +0200
committerJelmer Vernooij <jelmer@samba.org>2012-05-03 15:31:06 +0200
commit1077337afb7fd62b8d9aa4bfb1b95e7a1104e3da (patch)
tree70d632c1531a3eb94dd0e5e2ded22cbe2f6169cd /lib
parent7ed9ebab83f1883d09bee742d81e8d2308da1bfe (diff)
downloadsamba-1077337afb7fd62b8d9aa4bfb1b95e7a1104e3da.tar.gz
samba-1077337afb7fd62b8d9aa4bfb1b95e7a1104e3da.tar.bz2
samba-1077337afb7fd62b8d9aa4bfb1b95e7a1104e3da.zip
torture: Suggest torture_fail() / torture_result().
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu May 3 15:31:06 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/torture/torture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/torture/torture.c b/lib/torture/torture.c
index cee6bdb934..a2799efe16 100644
--- a/lib/torture/torture.c
+++ b/lib/torture/torture.c
@@ -443,7 +443,8 @@ static bool internal_torture_run_test(struct torture_context *context,
if (!success && context->last_result == TORTURE_OK) {
if (context->last_reason == NULL)
- context->last_reason = talloc_strdup(context, "Unknown error/failure");
+ context->last_reason = talloc_strdup(context,
+ "Unknown error/failure. Missing torture_fail() or torture_result() call?");
context->last_result = TORTURE_ERROR;
}
}