summaryrefslogtreecommitdiff
path: root/source3/script/tests/xattr-tdb-1
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-02 20:32:07 +0100
committerVolker Lendecke <vlendec@samba.org>2012-02-02 22:10:48 +0100
commitfad9727f256588993b15c15cf3c24fe18b885da9 (patch)
tree65934477f1fece482fb3b588c9cde3582ee4b5dd /source3/script/tests/xattr-tdb-1
parentda0a7b2fcc967d4d0f6cab3f1a93c875da9e5498 (diff)
downloadsamba-fad9727f256588993b15c15cf3c24fe18b885da9.tar.gz
samba-fad9727f256588993b15c15cf3c24fe18b885da9.tar.bz2
samba-fad9727f256588993b15c15cf3c24fe18b885da9.zip
s3: Test for faulty xattr_tdb listxattr
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Feb 2 22:10:49 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/script/tests/xattr-tdb-1')
-rwxr-xr-xsource3/script/tests/xattr-tdb-1/run.sh7
-rw-r--r--source3/script/tests/xattr-tdb-1/smb.conf5
-rw-r--r--source3/script/tests/xattr-tdb-1/vfstest.cmd5
3 files changed, 17 insertions, 0 deletions
diff --git a/source3/script/tests/xattr-tdb-1/run.sh b/source3/script/tests/xattr-tdb-1/run.sh
new file mode 100755
index 0000000000..2a1b6afd63
--- /dev/null
+++ b/source3/script/tests/xattr-tdb-1/run.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+if ../../../bin/vfstest -s smb.conf -f vfstest.cmd |
+ grep "NT_STATUS_ACCESS_DENIED" > /dev/null 2>&1
+then
+ exit 1
+fi
+exit 0
diff --git a/source3/script/tests/xattr-tdb-1/smb.conf b/source3/script/tests/xattr-tdb-1/smb.conf
new file mode 100644
index 0000000000..259b630c5e
--- /dev/null
+++ b/source3/script/tests/xattr-tdb-1/smb.conf
@@ -0,0 +1,5 @@
+[tmp]
+# "path" is ignored by vfstest, it's always set to $(pwd)
+path = /tmp
+writable = yes
+vfs objects = xattr_tdb
diff --git a/source3/script/tests/xattr-tdb-1/vfstest.cmd b/source3/script/tests/xattr-tdb-1/vfstest.cmd
new file mode 100644
index 0000000000..585147d61a
--- /dev/null
+++ b/source3/script/tests/xattr-tdb-1/vfstest.cmd
@@ -0,0 +1,5 @@
+connect
+open x RC 0700
+setxattr x y z
+listxattr x
+unlink x