summaryrefslogtreecommitdiff
path: root/source4/torture/raw/streams.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-20 15:51:02 +0100
committerVolker Lendecke <vl@samba.org>2008-01-20 15:55:33 +0100
commit66871f9950f1998c97f97c9a095953c66ab4ab64 (patch)
treed0191ea5c80a1386287b4dcb24719d8aee146f76 /source4/torture/raw/streams.c
parentb487ecdfad4518936cc542379b7f0102b38b3c62 (diff)
downloadsamba-66871f9950f1998c97f97c9a095953c66ab4ab64.tar.gz
samba-66871f9950f1998c97f97c9a095953c66ab4ab64.tar.bz2
samba-66871f9950f1998c97f97c9a095953c66ab4ab64.zip
Add an exception for S3
Doing this correctly would involve a create_file call for qpathinfo (This used to be commit da9a5b571ea87b2e08c74463d3fae58a9eb0828a)
Diffstat (limited to 'source4/torture/raw/streams.c')
-rw-r--r--source4/torture/raw/streams.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source4/torture/raw/streams.c b/source4/torture/raw/streams.c
index bbc0bcae82..ca6b488af5 100644
--- a/source4/torture/raw/streams.c
+++ b/source4/torture/raw/streams.c
@@ -490,9 +490,16 @@ static bool test_stream_delete(struct torture_context *tctx,
status = smb_raw_pathinfo(cli->tree, mem_ctx, &finfo);
CHECK_STATUS(status, NT_STATUS_DELETE_PENDING);
- finfo.generic.in.file.path = sname1;
- status = smb_raw_pathinfo(cli->tree, mem_ctx, &finfo);
- CHECK_STATUS(status, NT_STATUS_DELETE_PENDING);
+ if (!torture_setting_bool(tctx, "samba3", false)) {
+
+ /*
+ * S3 doesn't do this yet
+ */
+
+ finfo.generic.in.file.path = sname1;
+ status = smb_raw_pathinfo(cli->tree, mem_ctx, &finfo);
+ CHECK_STATUS(status, NT_STATUS_DELETE_PENDING);
+ }
/*
* fd-based qfileinfo on the stream still works, the stream does not