summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-05-15 01:21:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:27 -0500
commit3a88c56346929695cc4b2ecc22e20aee51b493d9 (patch)
tree42f24be9fda8f25045a70be99fd353434cc63284 /source4/torture/raw
parentd307c116c8e50e9d6d304209636d9d23f6574488 (diff)
downloadsamba-3a88c56346929695cc4b2ecc22e20aee51b493d9.tar.gz
samba-3a88c56346929695cc4b2ecc22e20aee51b493d9.tar.bz2
samba-3a88c56346929695cc4b2ecc22e20aee51b493d9.zip
r22874: Expand the RPC-QFILEINFO-IPC test, and add a server implementation to match.
This should help with Vista joins. Andrew Bartlett (This used to be commit 8f85fb37862044d4b618e4184274bc67432af73b)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/qfileinfo.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c
index 9c3b1e6a4b..8696bb5f4d 100644
--- a/source4/torture/raw/qfileinfo.c
+++ b/source4/torture/raw/qfileinfo.c
@@ -732,6 +732,24 @@ static BOOL torture_raw_qfileinfo_internals(struct torture_context *torture, TAL
"ALL_INFO", all_info, directory);
VAL_CHECK("STANDARD_INFO", standard_info, nlink,
"ALL_INFO", all_info, nlink);
+ s1 = fnum_find("BASIC_INFO");
+ if (s1 && is_ipc) {
+ if (s1->basic_info.out.attrib != FILE_ATTRIBUTE_NORMAL) {
+ printf("(%d) attrib basic_info/nlink incorrect - %d should be %d\n", __LINE__, s1->basic_info.out.attrib, FILE_ATTRIBUTE_NORMAL);
+ ret = False;
+ }
+ }
+ s1 = fnum_find("STANDARD_INFO");
+ if (s1 && is_ipc) {
+ if (s1->standard_info.out.nlink != 1) {
+ printf("(%d) nlinks standard_info/nlink incorrect - %d should be 1\n", __LINE__, s1->standard_info.out.nlink);
+ ret = False;
+ }
+ if (s1->standard_info.out.delete_pending != 1) {
+ printf("(%d) nlinks standard_info/delete_pending incorrect - %d should be 1\n", __LINE__, s1->standard_info.out.delete_pending);
+ ret = False;
+ }
+ }
VAL_CHECK("EA_INFO", ea_info, ea_size,
"ALL_INFO", all_info, ea_size);
if (!is_ipc) {