[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Thu Mar 17 06:11:02 MDT 2011


The branch, master has been updated
       via  717beda s4-smbtorture: more torture_fail usage in raw.write test.
      from  1d516f0 s3-username: rename static getpwnam_alloc to getpwnam_alloc_cached.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 717beda638e84902ef9b78eb37e0d8e85672ffd3
Author: Günther Deschner <gd at samba.org>
Date:   Thu Mar 17 12:25:25 2011 +0100

    s4-smbtorture: more torture_fail usage in raw.write test.
    
    Guenther
    
    Autobuild-User: Günther Deschner <gd at samba.org>
    Autobuild-Date: Thu Mar 17 13:10:14 CET 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/raw/write.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/raw/write.c b/source4/torture/raw/write.c
index d3d21c5..8e564d7 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;
 		}
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list