From fad9727f256588993b15c15cf3c24fe18b885da9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 2 Feb 2012 20:32:07 +0100 Subject: s3: Test for faulty xattr_tdb listxattr Autobuild-User: Volker Lendecke Autobuild-Date: Thu Feb 2 22:10:49 CET 2012 on sn-devel-104 --- source3/script/tests/xattr-tdb-1/run.sh | 7 +++++++ source3/script/tests/xattr-tdb-1/smb.conf | 5 +++++ source3/script/tests/xattr-tdb-1/vfstest.cmd | 5 +++++ 3 files changed, 17 insertions(+) create mode 100755 source3/script/tests/xattr-tdb-1/run.sh create mode 100644 source3/script/tests/xattr-tdb-1/smb.conf create mode 100644 source3/script/tests/xattr-tdb-1/vfstest.cmd (limited to 'source3/script/tests') 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 -- cgit