summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-26 22:44:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:48 -0500
commit3b5c992481d510adbafba73f737360ebb21e3540 (patch)
tree48f2dadfd7d85d730443296b65f733c947588db0 /source4
parent86bd884b1e7df91e5c9ee903325beab53d12bb7a (diff)
downloadsamba-3b5c992481d510adbafba73f737360ebb21e3540.tar.gz
samba-3b5c992481d510adbafba73f737360ebb21e3540.tar.bz2
samba-3b5c992481d510adbafba73f737360ebb21e3540.zip
r3270: - added another unlink test
- removed BASE-TRANS2 from the list of tests to be worked on (its already in the "passes" list) (This used to be commit 8ba10229c3860b955de698c3e2660cf6d18e2f22)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/script/tests/test_posix.sh1
-rw-r--r--source4/torture/raw/unlink.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/script/tests/test_posix.sh b/source4/script/tests/test_posix.sh
index a23627931a..d298f5d7ce 100755
--- a/source4/script/tests/test_posix.sh
+++ b/source4/script/tests/test_posix.sh
@@ -43,7 +43,6 @@ tests="$tests LOCAL-ICONV LOCAL-TALLOC LOCAL-MESSAGING LOCAL-BINDING LOCAL-IDTRE
soon="BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET"
soon="$soon RAW-SFILEINFO RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX"
soon="$soon RAW-CHKPATH RAW-WRITE RAW-RENAME"
-soon="$soon BASE-TRANS2"
for t in $tests; do
if [ ! -z "$start" -a "$start" != $t ]; then
diff --git a/source4/torture/raw/unlink.c b/source4/torture/raw/unlink.c
index 9c408105df..b67837b598 100644
--- a/source4/torture/raw/unlink.c
+++ b/source4/torture/raw/unlink.c
@@ -73,6 +73,11 @@ static BOOL test_unlink(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
status = smb_raw_unlink(cli->tree, &io);
CHECK_STATUS(status, NT_STATUS_OK);
+ io.in.pattern = fname;
+ io.in.attrib = FILE_ATTRIBUTE_HIDDEN;
+ status = smb_raw_unlink(cli->tree, &io);
+ CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
+
printf("Trying a directory\n");
io.in.pattern = BASEDIR;
io.in.attrib = 0;