summaryrefslogtreecommitdiff
path: root/source4/torture/basic/delete.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-19source4/torture/basic: Fix prototypes for all functions.Jelmer Vernooij1-0/+1
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-2/+1
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-09-16s3/s4: merge msleep and smb_msleepBjörn Jacke1-1/+1
the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
2009-12-07s4/torture: add delete-on-close test for directoriesAravind Srinivasan1-0/+63
This test opens a directory with delete on close, opens it again, and checks to make sure that the second open returned with NT_STATUS_DELETE_PENDING.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-2/+0
This reduces compile time somewhat.
2008-12-09s4: [2/3] Fix a delete on close divergence from windows and the associated ↵Tim Prouty1-5/+18
torture test This second patch fixes the deltest17 BASE-DELETE torture test to pass against win2k3/win2k8/winXPsp2
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2007-12-21r26249: Remove a couple more uses of global_loadparm.Jelmer Vernooij1-4/+4
(This used to be commit 80a61200508a00d5b16a3e748ce92d54b9fefcd2)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-86/+86
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r23104: Add comment explaining the new test.Jeremy Allison1-1/+7
Jeremy. (This used to be commit 7b9b5c59a4ac2afca151ba12eba7c808057a677e)
2007-10-10r23103: Add a torture test for the insane semantics Steve's cifsfs clientJeremy Allison1-0/+104
uses so we don't regress :-). Jeremy. (This used to be commit 5ce41ae40c5413bb9f15d1c47a095f63d7f167e0)
2007-10-10r23099: New interesting delete on close tests :-).Jeremy Allison1-1/+62
This will break all delete tests on the build farm until I check in my server patch. Jeremy. (This used to be commit c31f775f1c8f6f7e50d038d093898a1f4280be23)
2007-10-10r23029: fixed formattingAndrew Tridgell1-3/+3
(This used to be commit 72ee4707725e9bbc9ab564315c7d78bdc564256f)
2007-10-10r21134: Attempt to quieten the build farm for Samba3Volker Lendecke1-0/+4
(This used to be commit 966c30ca591c410a4a229396c7919fe8f98bd066)
2007-10-10r20525: Closing a dir with del-on-close set requires the same as files: ↵Volker Lendecke1-0/+80
Don't actually unlink/rmdir if another process still has it open. Jeremy, this is a potential merger to 3.0.24. Volker (This used to be commit d0550a01af219344ec2e4c16d5253814afc89974)
2007-10-10r19389: Remove samba3-specific checks: instead, always simply mark these ↵Jelmer Vernooij1-7/+5
tests as known failing. (This used to be commit 3855ec9dcaa694fffa1f2a24205d490708d12750)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-758/+360
output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10r17020: pass the real error to the failing requestsStefan Metzmacher1-1/+1
metze (This used to be commit 49b96ac44a883c020c69df7a12df154dc4faa4d5)
2007-10-10r16907: Add an index parameter to torture_open_connection. Next step is to ↵Volker Lendecke1-3/+3
enable the unclist parameter for all tests that do two connections, to enable cluster testing. Volker (This used to be commit a5d6db09244d444986f8fded3fc6e72c74c8ca1f)
2007-10-10r16834: split the level's of smb_search_first/smb_search_next and the levelsStefan Metzmacher1-1/+3
of smb_search_data metze (This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10r16756: Some machines on the build farms sporadically fail the testVolker Lendecke1-0/+4
/* Test 21 -- Test removal of file after socket close. */ I think it might be because they are too slow to delete the file. Jeremy, can you check this test does not change semantics in a way you don't want it? Volker (This used to be commit 92aa95f8206364a832bd6ad8cebc030bc001d940)
2007-10-10r16182: Better test the 15 out of 20 tests we right now survive than not test atVolker Lendecke1-5/+7
all... Volker (This used to be commit 1d4a129bb56ef7b944dbd386313ea8345a675e6f)
2007-10-10r15865: using dirname for a variable isn't that good,Stefan Metzmacher1-36/+36
but making it a global symbol is really bad... fix linking on sun1 in the build-farm metze (This used to be commit d073320f642ceeb49b11060aa958608248f3aff5)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-1/+1
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14527: Fix build problems.Jelmer Vernooij1-0/+1
(This used to be commit 863ca4014d9b821706ee90f58ab5d5cf3899a4c7)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-2/+2
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-2/+2
a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10r13707: expanded the delete on close test some more, and make it easier toAndrew Tridgell1-47/+70
track down where a error is happening. The semantics sure are strange! (This used to be commit f722aed66d19edc6b49ecde927853aaa7895ab91)
2007-10-10r13370: Added deltest21 - pull the rug out from a connection by socketJeremy Allison1-81/+90
close after setting delete on close flag. Jeremy. (This used to be commit fbea18e78f8a3c6dbb36aa935b7044c0fcf61da4)
2007-10-10r13346: use private proto header files for the torture testsStefan Metzmacher1-0/+2
metze (This used to be commit 67837dbd2bcff8ec1917ba02884ee2eaa0776b46)
2007-10-10r13297: It's a good thing the shipment of function headers tridgeJeremy Allison1-221/+404
sent me arrived on time... :-). Refactor this code to make it comprehensible. Tested against W2K3 SP 1 and W2K SP 4. Test 19 is different from what I thought. Turns out delete on close on "open" of a directory (not create) does have an effect - even if not reported in the flag bit. trige please test against Vista (my XP box is refusing to serve at the moment - have to reinstall). Jeremy. (This used to be commit 2b708e26185bfc0a909a33e74e67dd2101c3bbbe)
2007-10-10r13277: print a useful error message when test 17 failsAndrew Tridgell1-2/+2
(This used to be commit 70ad98b05136da0cdbd91b8374ac9709abfcadeb)
2007-10-10r13275: With a liberal sprinkling of smb_raw_exit thisJeremy Allison1-9/+70
now passes for me for W2K and W2K3... booting the XP box to test it... Jeremy. (This used to be commit 0133ba78c15b10e925f4e26e163656aa7cd11476)
2007-10-10r13272: Re-arrange so all the normal tests we can pass come first.Jeremy Allison1-90/+92
Jeremy. (This used to be commit 0b61a8df3c1b5b1a73bf6afd0404871286d3a2fc)
2007-10-10r13271: Do the same tests with directories.Jeremy Allison1-2/+161
Jeremy. (This used to be commit 7986af2ece2e707ee3d98dadb37af9fc5126d138)
2007-10-10r13270: Add tests for even more insane delete-on-close semantics.Jeremy Allison1-0/+142
Jeremy. (This used to be commit ae0851ce667c0559e786c3a83389ccfddce1a813)
2007-10-10r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij1-0/+1
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij1-0/+1
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-1/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12154: Torture test for bug # 3303.Volker Lendecke1-0/+125
Jeremy, to run this against Samba3 at all you need to insert a "goto line 957" in line 548. Without this we fail some tests before # 16 and bail out. While looking at it, you wanted to fix the directory-based ones a while ago.... :-)) Volker (This used to be commit 45cd224102f21364c4f6ca056417f956f21eb02e)
2007-10-10r12150: ReformattingVolker Lendecke1-8/+15
(This used to be commit aaa21b7132ec81008ad2ec7b2aafc4604d13093d)
2007-10-10r9431: Check an error code in BASE-DELETE.Volker Lendecke1-2/+13
Volker (This used to be commit 71571fffc0493a5658c5980e6ebe4d8f9ada4699)
2007-10-10r8185: Delete on close on directories:Volker Lendecke1-0/+137
Creating a file in a directory with delete-on-close set returns DELETE_PENDING, and trying to set the flag on a non-empty directory returns DIRECTORY_NOT_EMPTY. Volker (This used to be commit 5680f34778b2f5291936f4d4fb937a7713696c52)
2007-10-10r8182: Little more testing delete-on-close: Check flag with qfileinfo.Volker Lendecke1-16/+79
Volker (This used to be commit 47a9df946d5ff967289fba0ff4209711ead11e31)
2007-10-10r8179: Delete-on-close is really a shared DB. Setting it on one ↵Volker Lendecke1-84/+138
connection(!) and resetting it on another resets it for both. Volker (This used to be commit 30bd7e36669dbb2fd7d85a1cd72927370267d616)
2007-10-10r8177: More explorations.Volker Lendecke1-1/+46
The share mode db is actually checked on qpathinfo even before the delete-on-close is executed. Volker (This used to be commit 124f3b74ca2ece9ba73737c3ccb75e1730973f19)
2007-10-10r8176: Exploring the share mode database...Volker Lendecke1-0/+39
A delete-on-close deleted file is still around while open on another fd. But only for findfirst, not for qpathinfo :-) Volker (This used to be commit dbc7a1a978d782c73f593f4b46f2a81d35169713)
2007-10-10r8117: fixed a bunch more dos error code handing.Andrew Tridgell1-2/+2
The biggest change was fixing the RAW-CONTEXT test. It was forcing capabilities to zero in an attempt to not negotiated extended security, but as a side effect it was forcing negotiation of dos error codes. This confused the hell out of the test code! Also fixed a bunch of places incorrectly using NT_STATUS_V() instead of NT_STATUS_EQUAL() and several places that had the wrong dos status codes (This used to be commit 0b22744f40804a0d6dc94bfc40ec09306f584f7e)
2007-10-10r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell1-0/+1
less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)