From: Jeremy Allison Date: Mon, 22 Dec 2008 19:58:38 +0000 (-0800) Subject: Make it clearer when RAW-STREAMS is failing (don't always print names). X-Git-Tag: samba-4.0.0alpha6~413^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1389a39508735bd3133bac9da5eee3c73342d1f;p=thirdparty%2Fsamba.git Make it clearer when RAW-STREAMS is failing (don't always print names). Jeremy. --- diff --git a/source4/torture/raw/streams.c b/source4/torture/raw/streams.c index 4e2a204cb61..ba74530c6f9 100644 --- a/source4/torture/raw/streams.c +++ b/source4/torture/raw/streams.c @@ -996,14 +996,16 @@ static bool test_stream_names2(struct torture_context *tctx, break; } - printf("(%s) %s:Stream%c0x%02X:$DATA%s => expected[%s]\n", - __location__, fname, isprint(i)?(char)i:' ', i, - isprint(i)?"":" (not printable)", - nt_errstr(expected)); io.ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN; io.ntcreatex.in.fname = path; status = smb_raw_open(cli->tree, mem_ctx, &io); + if (!NT_STATUS_EQUAL(status, expected)) { + printf("(%s) %s:Stream%c0x%02X:$DATA%s => expected[%s]\n", + __location__, fname, isprint(i)?(char)i:' ', i, + isprint(i)?"":" (not printable)", + nt_errstr(expected)); + } CHECK_STATUS(status, expected); talloc_free(path);