summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-01 14:31:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:43 -0500
commit2e56d833b43afe52e5f9db0221be615c5709e85e (patch)
tree1409ed43f9044642b97beff5eb0074fc0d7c5fb6 /source4
parentdd44e2415ce2f0c6afddbb88b0c069ade95dc99f (diff)
downloadsamba-2e56d833b43afe52e5f9db0221be615c5709e85e.tar.gz
samba-2e56d833b43afe52e5f9db0221be615c5709e85e.tar.bz2
samba-2e56d833b43afe52e5f9db0221be615c5709e85e.zip
r16739: test SMB2-GETINFO SMB2-SETINFO by make test
metze (This used to be commit 0ebb25de5680cb783d1d79e580aab3f1f03871bc)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/script/tests/test_posix.sh2
-rw-r--r--source4/torture/smb2/getinfo.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/script/tests/test_posix.sh b/source4/script/tests/test_posix.sh
index df8648caaf..7d526e84b2 100755
--- a/source4/script/tests/test_posix.sh
+++ b/source4/script/tests/test_posix.sh
@@ -43,7 +43,7 @@ raw="$raw RAW-IOCTL RAW-LOCK RAW-MKDIR RAW-MUX RAW-NOTIFY RAW-OPEN RAW-OPLOCK"
raw="$raw RAW-QFILEINFO RAW-QFSINFO RAW-READ RAW-RENAME RAW-SEARCH RAW-SEEK"
raw="$raw RAW-SFILEINFO RAW-SFILEINFO-BUG RAW-STREAMS RAW-UNLINK RAW-WRITE"
-smb2="SMB2-CONNECT"
+smb2="SMB2-CONNECT SMB2-GETINFO SMB2-SETINFO"
tests="$base $raw $smb2"
diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c
index 865f85a8ff..dfabb08225 100644
--- a/source4/torture/smb2/getinfo.c
+++ b/source4/torture/smb2/getinfo.c
@@ -104,6 +104,9 @@ static BOOL torture_smb2_fileinfo(struct smb2_tree *tree)
file_levels[i].dinfo.query_secdesc.in.secinfo_flags = 0x7;
}
if (file_levels[i].level == RAW_FILEINFO_SMB2_ALL_EAS) {
+ if (lp_parm_bool(-1, "target", "samba4", False)) {
+ continue;
+ }
file_levels[i].finfo.all_eas.in.continue_flags =
SMB2_CONTINUE_FLAG_RESTART;
file_levels[i].dinfo.all_eas.in.continue_flags =