smbd: Test cleanup of disconnected durable handle records
authorVolker Lendecke <vl@samba.org>
Tue, 3 Dec 2019 20:33:28 +0000 (21:33 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 8 Dec 2019 20:24:32 +0000 (20:24 +0000)
commit8435128582adf81a18e9d929970074d4f2326d20
treefc1349a68ddffea4daf264bbcb9d4ce958e5fb62
parentf3802023feb9e5dfa82d2174437b7576470f575b
smbd: Test cleanup of disconnected durable handle records

Right now this panics the scavenger daemon, preventing it from doing
its work. The reopen we expect to fail with
NT_STATUS_OBJECT_NAME_NOT_FOUND thus succeeds. I know that we should
more precisely detect the scavenger crash and with Jeremy's pattern in
46899ecf836 this would be possible. However, this is C code right now,
and scanning the logfile for the panic is more I have time for right
now. The test successfully indicates failure, as the next commit will
show.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/durable_v2_delay_msec [new file with mode: 0644]
source4/torture/smb2/durable_v2_open.c