diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-11-23 15:29:22 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:46:04 +0100 |
commit | d588d3e3ada71c11d0db654adb18e9de300fd74b (patch) | |
tree | 96f09697ec89ab5d6e6a9d8851e4d55feff63ddc /source4/torture/raw | |
parent | b24e7a15051518806b50768cfc2a840d2b395fe3 (diff) | |
download | samba-d588d3e3ada71c11d0db654adb18e9de300fd74b.tar.gz samba-d588d3e3ada71c11d0db654adb18e9de300fd74b.tar.bz2 samba-d588d3e3ada71c11d0db654adb18e9de300fd74b.zip |
r26103: Leave streams around to unlink
Add test case for stream name case insensitity
(This used to be commit d81bb50e1042934e9644e5502d83a2cedc033b3a)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/streams.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/torture/raw/streams.c b/source4/torture/raw/streams.c index ac9d0d36aa..ba3840947e 100644 --- a/source4/torture/raw/streams.c +++ b/source4/torture/raw/streams.c @@ -261,6 +261,8 @@ static bool test_stream_io(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) ret &= check_stream(cli, __location__, mem_ctx, fname, "Stream One:$DATA", "test MORE DATA "); ret &= check_stream(cli, __location__, mem_ctx, fname, "Stream One:", NULL); ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream", "SECOND STREAM"); + ret &= check_stream(cli, __location__, mem_ctx, fname, + "SECOND STREAM:$DATA", "SECOND STREAM"); ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream:$DATA", "SECOND STREAM"); ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream:", NULL); ret &= check_stream(cli, __location__, mem_ctx, fname, "Second Stream:$FOO", NULL); @@ -290,6 +292,16 @@ static bool test_stream_io(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) check_stream_list(cli, fname, 1, one); + io.ntcreatex.in.open_disposition = NTCREATEX_DISP_CREATE; + io.ntcreatex.in.fname = sname1; + status = smb_raw_open(cli->tree, mem_ctx, &io); + CHECK_STATUS(status, NT_STATUS_OK); + smbcli_close(cli->tree, io.ntcreatex.out.file.fnum); + io.ntcreatex.in.fname = sname2; + status = smb_raw_open(cli->tree, mem_ctx, &io); + CHECK_STATUS(status, NT_STATUS_OK); + smbcli_close(cli->tree, io.ntcreatex.out.file.fnum); + printf("(%s) deleting file\n", __location__); status = smbcli_unlink(cli->tree, fname); CHECK_STATUS(status, NT_STATUS_OK); |