summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorAravind Srinivasan <aravind.srinivasan@isilon.com>2009-10-06 16:43:43 -0700
committerSteven Danneman <steven.danneman@isilon.com>2009-10-06 19:43:15 -0700
commit6de743a2a2f8360569b76777fb34cf61c631d619 (patch)
treea80b9f22131236c6f467345865bfd532af4b1fde /source4/torture/basic
parent7709db4c0363fe2d7b061bbed5022a8fbbf78e7c (diff)
downloadsamba-6de743a2a2f8360569b76777fb34cf61c631d619.tar.gz
samba-6de743a2a2f8360569b76777fb34cf61c631d619.tar.bz2
samba-6de743a2a2f8360569b76777fb34cf61c631d619.zip
s4/torture: change comments to torture_failures
This allows the frameworks that wrap smbtorture to detect errors better.
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/denytest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c
index bc64d4b2ff..ae7c241a5c 100644
--- a/source4/torture/basic/denytest.c
+++ b/source4/torture/basic/denytest.c
@@ -1914,7 +1914,8 @@ bool torture_ntdenytest2(struct torture_context *torture,
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
- torture_comment(tctx, "(%s) Incorrect status %s - should be %s\n", \
+ torture_result(tctx, TORTURE_FAIL, \
+ "(%s) Incorrect status %s - should be %s\n", \
__location__, nt_errstr(status), nt_errstr(correct)); \
ret = false; \
goto done; \
@@ -1922,7 +1923,8 @@ bool torture_ntdenytest2(struct torture_context *torture,
#define CHECK_VAL(v, correct) do { \
if ((v) != (correct)) { \
- torture_comment(tctx, "(%s) wrong value for %s 0x%x - should be 0x%x\n", \
+ torture_result(tctx, TORTURE_FAIL, \
+ "(%s) wrong value for %s 0x%x - should be 0x%x\n", \
__location__, #v, (int)(v), (int)correct); \
ret = false; \
}} while (0)