r26361: Ensure this test cannot proceed if the pipe connection failed.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 10 Dec 2007 04:45:41 +0000 (05:45 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:49:05 +0000 (05:49 +0100)
Andrew Bartlett
(This used to be commit 0e04e85ec262ec94ca4dd19e77cfbf8b78ca45fc)

source4/torture/libnet/libnet_share.c

index d693430b0560fcfb81074c5266715abeff21460b..c81dd29252777eeabf4944f838d34cd6d849ba41 100644 (file)
@@ -216,6 +216,8 @@ bool torture_delshare(struct torture_context *torture)
                                        &p,
                                        &ndr_table_srvsvc);
 
                                        &p,
                                        &ndr_table_srvsvc);
 
+       torture_assert_ntstatus_ok(torture, status, "Failed to get rpc connection");
+
        if (!test_addshare(p, torture, host, TEST_SHARENAME)) {
                return false;
        }
        if (!test_addshare(p, torture, host, TEST_SHARENAME)) {
                return false;
        }