summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-17 12:25:25 +0100
committerGünther Deschner <gd@samba.org>2011-03-17 13:10:14 +0100
commit717beda638e84902ef9b78eb37e0d8e85672ffd3 (patch)
treeef27523397e0d7126ed675d977072c7a5d4497be /source4
parent1d516f0d76ea83a50ff697b44cf0ebfd54f68b50 (diff)
downloadsamba-717beda638e84902ef9b78eb37e0d8e85672ffd3.tar.gz
samba-717beda638e84902ef9b78eb37e0d8e85672ffd3.tar.bz2
samba-717beda638e84902ef9b78eb37e0d8e85672ffd3.zip
s4-smbtorture: more torture_fail usage in raw.write test.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Mar 17 13:10:14 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/write.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/raw/write.c b/source4/torture/raw/write.c
index d3d21c58a7..8e564d7563 100644
--- a/source4/torture/raw/write.c
+++ b/source4/torture/raw/write.c
@@ -27,16 +27,16 @@
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
- torture_comment(tctx, "(%s) Incorrect status %s - should be %s\n", \
- __location__, nt_errstr(status), nt_errstr(correct)); \
+ torture_fail(tctx, talloc_asprintf(tctx, "(%s) Incorrect status %s - should be %s\n", \
+ __location__, nt_errstr(status), nt_errstr(correct))); \
ret = false; \
goto done; \
}} while (0)
#define CHECK_VALUE(v, correct) do { \
if ((v) != (correct)) { \
- torture_comment(tctx, "(%s) Incorrect value %s=%d - should be %d\n", \
- __location__, #v, v, correct); \
+ torture_fail(tctx, talloc_asprintf(tctx, "(%s) Incorrect value %s=%d - should be %d\n", \
+ __location__, #v, v, correct)); \
ret = false; \
goto done; \
}} while (0)
@@ -84,8 +84,8 @@ static bool check_buffer(struct torture_context *tctx,
for (i=0;i<len;i++) {
uint8_t v = random();
if (buf[i] != v) {
- torture_comment(tctx, "Buffer incorrect at %s! ofs=%d buf=0x%x correct=0x%x\n",
- location, i, buf[i], v);
+ torture_fail(tctx, talloc_asprintf(tctx, "Buffer incorrect at %s! ofs=%d buf=0x%x correct=0x%x\n",
+ location, i, buf[i], v));
return false;
}
}