torture: Fix cleanup2 to utilize on-demand cleanup
authorVolker Lendecke <vl@samba.org>
Wed, 20 Aug 2014 09:53:28 +0000 (09:53 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 22 Aug 2014 22:24:18 +0000 (00:24 +0200)
commit0ddfdb83e8a5aacc16994e2a380101723035c576
tree91cf235613c08d12ff874c17a2797800e40dcc19
parent513584a3b1f7d46801d43da990594b1dca85ec11
torture: Fix cleanup2 to utilize on-demand cleanup

Now we check the cleanup when conflicts happen, not when we first open
the file. This means we don't have to re-open the connection to make
cleanup happen.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/test_cleanup.c