summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-10-21 16:51:17 -0700
committerTim Prouty <tprouty@samba.org>2009-12-07 16:52:15 -0800
commit5d66d43667f9356b50dad5555e6b5ed04b7a4fd2 (patch)
treeb79ab63904d822ff28ff04ef05bd05c6fee8c965
parent47f5aac39d4a81f37ae0d8656ac75d985b24053b (diff)
downloadsamba-5d66d43667f9356b50dad5555e6b5ed04b7a4fd2.tar.gz
samba-5d66d43667f9356b50dad5555e6b5ed04b7a4fd2.tar.bz2
samba-5d66d43667f9356b50dad5555e6b5ed04b7a4fd2.zip
s4 torture: Fix the streams create disposition tests to actually return an error on failure
-rw-r--r--source4/torture/raw/streams.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/raw/streams.c b/source4/torture/raw/streams.c
index 5c346f6de9..f2bf15756c 100644
--- a/source4/torture/raw/streams.c
+++ b/source4/torture/raw/streams.c
@@ -1358,7 +1358,7 @@ static bool test_stream_create_disposition(struct torture_context *tctx,
const char *fname_stream;
const char *default_stream_name = "::$DATA";
const char *stream_list[2];
- bool ret = true;
+ bool ret = false;
int fnum = -1;
fname_stream = talloc_asprintf(mem_ctx, "%s:%s", fname, stream);
@@ -1457,7 +1457,7 @@ static bool test_stream_create_disposition(struct torture_context *tctx,
status = smb_raw_open(cli->tree, mem_ctx, &io);
CHECK_STATUS(status, NT_STATUS_OK);
smbcli_close(cli->tree, io.ntcreatex.out.file.fnum);
- if (!check_stream_list(cli, fname, 1, &default_stream_name)) {
+ if (!check_stream_list(cli, fname, 2, stream_list)) {
goto done;
}
@@ -1488,6 +1488,8 @@ static bool test_stream_create_disposition(struct torture_context *tctx,
goto done;
}
+ ret = true;
+
done:
smbcli_close(cli->tree, fnum);
smbcli_unlink(cli->tree, fname);