diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-06-12 23:03:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:05 -0500 |
commit | 02aee3000d9fb29997d275e62a730ef97aca0128 (patch) | |
tree | 021a676444245af0a5705ab4db3c19400190c5d5 /source4/torture/smbtorture.c | |
parent | 90be000cd5d02e480bba8d68a56e5b8a2f8711ab (diff) | |
download | samba-02aee3000d9fb29997d275e62a730ef97aca0128.tar.gz samba-02aee3000d9fb29997d275e62a730ef97aca0128.tar.bz2 samba-02aee3000d9fb29997d275e62a730ef97aca0128.zip |
r16174: Couple of fixes to the UI code - make 'torture_ok()' optional, be more verbose by default.
(This used to be commit 8ef13a50b9e80811342058cdf15cf84a8ed7532e)
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r-- | source4/torture/smbtorture.c | 17 |
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) |