summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r--source4/torture/smbtorture.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 97b6ab2c65..c2c76d25c3 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -240,7 +240,22 @@ static void simple_test_start (struct torture_test *test)
static void simple_test_result (struct torture_test *test, enum torture_result res, const char *reason)
{
- printf("\t %d: %s\n",res, reason?reason:"");
+ switch (res) {
+ case TORTURE_OK:
+ if (reason)
+ printf("OK: %s\n", reason);
+ break;
+ case TORTURE_FAIL:
+ printf("ERROR: %s - %s\n", test->name, reason);
+ break;
+ case TORTURE_TODO:
+ printf("TODO: %s - %s\n", test->name, reason);
+ break;
+ case TORTURE_SKIP:
+ printf("SKIP: %s - %s\n", test->name, reason);
+ break;
+
+ }
}
static void simple_comment (struct torture_test *test, const char *comment)