s4:torture:smb2: fix the durable-open.delete_on_close1 test
commit3d7196d0a470d31a531a618f210cd60635361daf
authorMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 11:43:17 +0000 (11 13:43 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 12:29:54 +0000 (11 14:29 +0200)
tree5877d586033b32794d03ea998011d8008350c58f
parentd237427f18b02958cfcfd6d775ee52231b3d095f
s4:torture:smb2: fix the durable-open.delete_on_close1 test

This test used to flap because there was an invalid check of
the file-id. This might or might not be the same after a
new open. Hence the flapping.

The new version simply opens a file as durable handle with
delete_on_close set, writes a byte and closes the file.
Then on a new connect, the file is opened again, and it is checked
that the file has been created (again) and that it is empty.
source4/torture/smb2/durable_open.c