smbtorture: correct error handling in BASE-OPEN.
commita73f539b7cffb75734fb892acafc6ff740a82c0d
authorJames Peach <jpeach@samba.org>
Mon, 6 Dec 2010 19:27:31 +0000 (6 11:27 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 11 Dec 2010 04:35:10 +0000 (10 20:35 -0800)
treea4ad933f3fd6bf37154b80364adf8dec11b0bd38
parent5dd10a43d45f66b6da9b3273d2c4b044db97006d
smbtorture: correct error handling in BASE-OPEN.

There are a number of cases in BASE-OPEN where an initial failure cascades
into multiple failures due to lack of cleanup between test phases. Fix
all these so that they close open file handles correctly. Replace
torture_comment with torture_result where appropriate so that the results
output contains a useful diagnostic.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 11 03:19:39 CET 2010 on sn-devel-104
(cherry picked from commit 7ef1de3973ea694abb7e330dd538a0f3679365fb)
source4/torture/basic/base.c